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
I met the problem caused by PyTorch. The returned forward output is tuple rather than tensor.
I must do operation on output[0] rather than output.
However, the internal code of auto attack is doing on output tensor directly. Is there an auto-attack code version to support the operation to do the execution on the output[0] rather than output? Or should I adjust the PyTorch-Version to support the auto-attack and retrain the model?
Traceback (most recent call last):
File "eval_cifar.py", line 110, in
main()
File "eval_cifar.py", line 107, in main
X_adv = adversary.run_standard_evaluation(x_test, y_test, bs=128)
File "/opt/conda/lib/python3.6/site-packages/autoattack-0.1-py3.6.egg/autoattack/autoattack.py", line 91, in run_standard_evaluation
AttributeError: 'tuple' object has no attribute 'max'
I am looking forward to your answer.
Thanks & Regards!
Momo
The text was updated successfully, but these errors were encountered:
Hi, dear Frank.
I met the problem caused by PyTorch. The returned forward output is tuple rather than tensor.
I must do operation on output[0] rather than output.
However, the internal code of auto attack is doing on output tensor directly. Is there an auto-attack code version to support the operation to do the execution on the output[0] rather than output? Or should I adjust the PyTorch-Version to support the auto-attack and retrain the model?
I am looking forward to your answer.
Thanks & Regards!
Momo
The text was updated successfully, but these errors were encountered: