-
Notifications
You must be signed in to change notification settings - Fork 4
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
Torch warning about copying tensors #139
Comments
We can use a simple util function to convert lists to tensor. This raises a warning because it is an implicit copy and can be quite expensive depending on the size of the tensors. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
recOrder
tests surfaced the following warnings atoptics.py:321
,optics.py:370
, andstokes.py:291
You can generate these warnings with a call like
The core issue seems to be that some
optics
andstokes
functions can take either a list or a tensor.@ziw-liu do you think we should make sure that only lists are passed? Or can you think of a simpler solution?
This does not seem critical.
The text was updated successfully, but these errors were encountered: