-
Notifications
You must be signed in to change notification settings - Fork 1.8k
AttributeError: module 'torch.onnx' has no attribute 'set_training' in pytorch1.6 #2877
Comments
@LovPe can you share line of code which thrown error and complete error log with system info and libraries version? |
@AnshuTrivedi |
can you tell me the Method to deal with the error, Thank you very much. |
@cvirus0626 I did not handle this error since it is already in plan to solve in 2.0. Currently i suggest to use pytorch version < 1.6. |
==========torchvision.version========== alexnet_model = torchvision.models.alexnet() I think tensorwatch is a very good tools for deeplearning , I hope this problem can be resolved . |
This feature had been supported in PR #3076 and released in NNI v2.0. So I will close this issue, feel free to reopen it. |
Thanks for this job. After version1.6 'set_training' may changed into 'select_model_mode_for_export'. I hope you can fix this problem because it is difficult to fix the sorce code in kaggle notebook. Thank you very much. |
Hi Thanks for this job
I met a error when using pytorch1.6
I checked the doc in torch, it seems this has changed to
torch.onnx.select_model_mode_for_export
. Is there any plan to update this? ThanksThe text was updated successfully, but these errors were encountered: