-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NumPy array is not writeable, and PyTorch does not support non-writeable tensors #24
Comments
Hi François, Best wishes, |
Hello Max, Thank you for your answer! I have defined a cpu setup. active environment : None Best wishes, François |
Hi François, Update 1: You have to uninstall anaconda 4.8.3 and install 4.8.2: https://repo.anaconda.com/miniconda/ Cheers, |
I'm surprised that this ran at all, because I thought conda 4.8.3 can't install pytorch - did the install really work, or did it not, in which case the error message should be improved. |
This is a significant issue. I will report this to the pytorch community and we have to update our installation instructions... install_sjSDM() installs now automatically conda 4.8.2 so it affects only people who install anaconda themselves |
Okay, I found the source of this warning. There seems to be no issue with conda 4.8.3 on Linux/Windows but with PyTorch 1.5 and reticulate:
s-jSDM/sjSDM/inst/python/sjSDM_py/model_new.py Lines 119 to 125 in cc66b35
|
Thank you very much for your answers and update of the package. FYI, here is the new diagnostic I get with the lastest version, active environment : None
populated config files : |
There are two ways to reduce the memory strain:
|
I will keep this open... something in the code still causes the warning to appear (it appears after the tests... but I'm unable to track it down, 384 tests and the msg only appears once a session). For now, the work-around is to use |
Dear colleagues,
I have the following issue when attempting to run s-jSDM with the R package:
..\torch\csrc\utils\tensor_numpy.cpp:141: 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.
I don't figure out what is the problem here, and how to resolve it.
Do you have any idea?
Best wishes,
François
The text was updated successfully, but these errors were encountered: