diff --git a/ml_pytorch_mlflow.py b/ml_pytorch_mlflow.py index 1985c29..ddc3801 100644 --- a/ml_pytorch_mlflow.py +++ b/ml_pytorch_mlflow.py @@ -147,8 +147,8 @@ def my_main(epochs): input_, target = val_ds[i] file.write(str(predict_single(input_, target, model))) - val_ds = val_ds.unsqueeze(0) - input_example = val_ds[0] + 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)) tracking_url_type_store = urlparse(mlflow.get_tracking_uri()).scheme