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
Hello all,
I have done the according steps as said in README.md file, and as I was running the adda.py file with the specified argument as followed: python adda.py trained_models/source.pt , I met this error after a long time on the code was under execution:
C:\Users\FSangin\AppData\Local\Programs\Python\Python38\lib\site-packages\torchvision\datasets\mnist.py:498: UserWarning: The given NumPy array is not writeable, and PyTorch does not support non-writeable tensors. This means you can write to the underlying (supposedly non-writeable) NumPy array using the tensor. You may want to copy the array to protect its data or make it writeable before converting it to a tensor. This type of warning will be suppressed for the rest of this program. (Triggered internally at ..\torch\csrc\utils\tensor_numpy.cpp:180.) return torch.from_numpy(parsed.astype(m[2], copy=False)).view(*s) 0%| | 0/500 [00:00<?, ?it/s]C:\Users\FSangin\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\nn\functional.py:718: UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (Triggered internally at ..\c10/core/TensorImpl.h:1156.) return torch.max_pool2d(input, kernel_size, stride, padding, dilation, ceil_mode) Traceback (most recent call last): File "adda.py", line 125, in <module> main(args) File "adda.py", line 106, in main mean_loss = total_loss / (args.iterations*k_disc) NameError: name 'k_disc' is not defined
The text was updated successfully, but these errors were encountered:
Hello all,
I have done the according steps as said in README.md file, and as I was running the adda.py file with the specified argument as followed:
python adda.py trained_models/source.pt
, I met this error after a long time on the code was under execution:C:\Users\FSangin\AppData\Local\Programs\Python\Python38\lib\site-packages\torchvision\datasets\mnist.py:498: UserWarning: The given NumPy array is not writeable, and PyTorch does not support non-writeable tensors. This means you can write to the underlying (supposedly non-writeable) NumPy array using the tensor. You may want to copy the array to protect its data or make it writeable before converting it to a tensor. This type of warning will be suppressed for the rest of this program. (Triggered internally at ..\torch\csrc\utils\tensor_numpy.cpp:180.) return torch.from_numpy(parsed.astype(m[2], copy=False)).view(*s) 0%| | 0/500 [00:00<?, ?it/s]C:\Users\FSangin\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\nn\functional.py:718: UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (Triggered internally at ..\c10/core/TensorImpl.h:1156.) return torch.max_pool2d(input, kernel_size, stride, padding, dilation, ceil_mode) Traceback (most recent call last): File "adda.py", line 125, in <module> main(args) File "adda.py", line 106, in main mean_loss = total_loss / (args.iterations*k_disc) NameError: name 'k_disc' is not defined
The text was updated successfully, but these errors were encountered: