You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some AI models provide only prediction, therefore "get_train_args()" function does not exist. It does not cause an error in deepaas-run but deepaas-cli by default always expects both of the "get_train_args()" and "get_predict_args()" to be present.
Steps to Reproduce
in a AI module comment "get_train_args()"
call deepaas-cli predict --help
see error as e.g.
train_args = _fields_to_dict(model_obj.get_train_args())
^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'zooprocess_multiple_separator.api' has no attribute 'get_train_args'. Did you mean: 'get_predict_args'?
Expected behavior:
deepaas-cli is able to deal with cases when only predict() or train() is available
Versions
DEEPaaS API 2.5.2 and earlier
The text was updated successfully, but these errors were encountered:
vykozlov
changed the title
deepaas-cli always expecte get_predict_args() and get_train_args()
deepaas-cli always expects get_predict_args() and get_train_args()
Sep 26, 2024
Description
Some AI models provide only prediction, therefore "get_train_args()" function does not exist. It does not cause an error in deepaas-run but deepaas-cli by default always expects both of the "get_train_args()" and "get_predict_args()" to be present.
Steps to Reproduce
deepaas-cli predict --help
Expected behavior:
deepaas-cli is able to deal with cases when only predict() or train() is available
Versions
DEEPaaS API 2.5.2 and earlier
The text was updated successfully, but these errors were encountered: