This commit is contained in:
parent
b8340d0604
commit
1dda33aec7
@ -197,7 +197,7 @@ def signature(model, in_alphabet, max_len):
|
|||||||
mock_x = [('abc', 'xyz')]
|
mock_x = [('abc', 'xyz')]
|
||||||
mock_text, _ = encode_str(mock_x, in_alphabet, max_len)
|
mock_text, _ = encode_str(mock_x, in_alphabet, max_len)
|
||||||
mock_y = model(mock_text)
|
mock_y = model(mock_text)
|
||||||
return mlflow.models.signature.infer_signature(mock_text, mock_y)
|
return mlflow.models.signature.infer_signature(mock_text.numpy(), mock_y.numpy())
|
||||||
|
|
||||||
|
|
||||||
@ex.automain
|
@ex.automain
|
||||||
|
Loading…
Reference in New Issue
Block a user