Zaktualizuj 'ml_pytorch_mlflow.py'

This commit is contained in:
Sebastian Wałęsa 2022-05-15 14:31:43 +02:00
parent f2724d9db9
commit 1e54b7592e

View File

@ -149,7 +149,7 @@ def my_main(epochs):
input_example = val_ds[0]
# input_example = input_example.unsqueeze(0)
signature = mlflow.models.signature.infer_signature(input_example, prediction(input_example, model))
signature = mlflow.models.signature.infer_signature(input_example, model(input_example))
tracking_url_type_store = urlparse(mlflow.get_tracking_uri()).scheme
if tracking_url_type_store != "file":