Omar Mohamed Amin Ali
07/18/2023, 9:48 PM# Save the weights
model.save_weights('./checkpoints/my_checkpoint')
# Create a new model instance
model = create_model()
# Restore the weights
model.load_weights('./checkpoints/my_checkpoint')
# Evaluate the model
loss, acc = model.evaluate(test_images, test_labels, verbose=2)
print("Restored model, accuracy: {:5.2f}%".format(100 * acc))
This isn’t supported using the current bentoml.tensorflow.save_model or bentoml.keras.save_model , is there any workaround to have a custom load or save to create a runner out of it?