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
Right now, model_fn only accepts model_dir which is very limiting in case a model needs some arguments to be instantiated first then can load the checkpoint.
The text was updated successfully, but these errors were encountered:
I agree that the single model_dir argument is pretty restricting. One way I've gotten around hardcoding specific values is by using environment variables to pass in parameters that can be used in the model_fn at runtime, e.g. which model file to use during a Batch Transform job if I happen to load several models in with my model artifact.
Right now,
model_fn
only acceptsmodel_dir
which is very limiting in case a model needs some arguments to be instantiated first then can load the checkpoint.The text was updated successfully, but these errors were encountered: