From 311064bed45ffb2a7e7ee8a64ae8b9cdc7366fe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Wa=C5=82=C4=99sa?= Date: Sun, 15 May 2022 15:58:26 +0200 Subject: [PATCH] Zaktualizuj 'ml_pytorch_mlflow.py' --- ml_pytorch_mlflow.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ml_pytorch_mlflow.py b/ml_pytorch_mlflow.py index ddc3801..99b4364 100644 --- a/ml_pytorch_mlflow.py +++ b/ml_pytorch_mlflow.py @@ -147,10 +147,9 @@ def my_main(epochs): input_, target = val_ds[i] file.write(str(predict_single(input_, target, model))) - val_ds_x = val_ds.unsqueeze(0) input_example = val_ds_x[0] # input_example = input_example.unsqueeze(0) - signature = mlflow.models.signature.infer_signature(input_example, model(input_example)) + signature = mlflow.models.signature.infer_signature(input_[0], prediction(input_[0]), model) tracking_url_type_store = urlparse(mlflow.get_tracking_uri()).scheme if tracking_url_type_store != "file":