Open ehsanmok opened 3 years ago
Any update on this issue?
This is limiting as when a user wants to pass different hyperparameters, they must be hardcoded inside the model_fn
.
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.