Zaktualizuj 'ml_pytorch_mlflow.py'

This commit is contained in:
Sebastian Wałęsa 2022-05-15 16:05:16 +02:00
parent ecd0f1c8d0
commit baeefdbc79

View File

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