Skip to content
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

Non writable array #28

Open
hdnh2006 opened this issue Jul 14, 2023 · 2 comments
Open

Non writable array #28

hdnh2006 opened this issue Jul 14, 2023 · 2 comments

Comments

@hdnh2006
Copy link

Hello, I am running the test.py with all the parameters you suggested in the README, and I am getting the following warning:

/pytorch/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.

And unfortunatelly, these are the results gotten:
image

Any idea in which part of the code this is gotten? I need to make the numpy array writable but I don't know where this warning is being gotten.

@hdnh2006
Copy link
Author

I was able to suppress the warning by commenting/deleting this line of code but I am still unable to get correct results.

@nikunjkothiya
Copy link

I have the same problem.

Is there anything solution for this ???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants