Zaktualizuj 'ml_pytorch_mlflow.py'
This commit is contained in:
parent
1e54b7592e
commit
524f69a1b7
@ -147,6 +147,7 @@ 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]
|
||||
# input_example = input_example.unsqueeze(0)
|
||||
signature = mlflow.models.signature.infer_signature(input_example, model(input_example))
|
||||
|
Loading…
Reference in New Issue
Block a user