Closed LukeWood closed 3 years ago
@LukeWood Can you please share a standalone code to demonstrate what is not possible with the current saved_model?
Generally, when you use keras
layers, it is better to save the model with tf.keras.models.save
and load with tf.keras.models.load_model
. Did you try saving it as a keras
model and load. Thanks!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.
System information
Describe the feature and the current behavior/state. Loading the saved_model included with the SimCLR repository using
tf.saved_model.load
yields the error message:This is caused by tf.keras.layers.experimental.SyncBatchNormalization.
Will this change the current api? How? Won't
Who will benefit with this feature? Anyone attempting to use tf.keras.layers.experimental.SyncBatchNormalization from a saved_model.
Any Other info. I'm interested in contributing this as it would help me with some research I am performing. I am attempting to implement some functions that measure the robustness of a given saved_model for Neural Structured Learning. In order to do this, I'd like to perform Projected Gradient Descent on a given SavedModel, which requires the gradient to be included.