Zaktualizuj 'ml_pytorch_mlflow.py'

This commit is contained in:
Sebastian Wałęsa 2022-05-15 14:24:04 +02:00
parent 8831f8e67b
commit 312a7b3bb3

View File

@ -148,7 +148,7 @@ def my_main(epochs):
file.write(str(predict_single(input_, target, model)))
input_example = val_ds[0]
input_example = input_example.unsqueeze(0)
# input_example = input_example.unsqueeze(0)
signature = mlflow.models.signature.infer_signature(input_, prediction(input_example, model))
tracking_url_type_store = urlparse(mlflow.get_tracking_uri()).scheme