You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you look at Part 2 tutorial, for custom models (tf.keras.models.Model), before sending the model to the worker, we need to run model.predict(dummy_data) to set the input_shape ( required by tf.keras.models.save_model).
Ideally we would like to remove this step or just have to call model(dummy_data) before sending the model. You can find more information in this conversation.
The text was updated successfully, but these errors were encountered:
Hmm, I don't think this is ideal, since that method _set_inputs is meant to be internal and not exposed to the user. Then again, I do like placing that in the constructor a bit more than model.predict(x) for the tutorial. I just reviewed the conversation @yanndupis & I had in the original PR, if Keras is explicitly requiring that their users call fit, predict, or _set_inputs, then I think it's okay for us to expect the same as well.
The only thing left to change here would be to handle this a bit more cleanly in the case of model.send(bob). It would be great if we had our own error to report & redirect, since a user might not realize that sending a model has this call to save_model, which could be confusing.
If you look at Part 2 tutorial, for custom models (
tf.keras.models.Model
), before sending the model to the worker, we need to runmodel.predict(dummy_data)
to set the input_shape ( required by tf.keras.models.save_model).Ideally we would like to remove this step or just have to call
model(dummy_data)
before sending the model. You can find more information in this conversation.The text was updated successfully, but these errors were encountered: