-
Notifications
You must be signed in to change notification settings - Fork 65
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
Unexpected warning (about resizing) from torch_matrix_exp() only when input tensor values are < 1, despite output being correct #969
Comments
Hi, I've checked this in Python: PyTorch 1.12.1
Pytorch 1.13.1
|
Great to know: thanks very much! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've encountered an unexpected warning during
torch_matrix_exp()
which is triggered only when the argument (x
) has values in a range (< 1) which causesprint(x)
to display in "scientific notation" mode (ie. by printing an exponential scaling factor (eg.0.001 *
) before printing the columns). This is consistent across 1000s of calls totorch_matrix_exp()
: scientifically-notated inputsx
always trigger the warning; non-scientifically-notated inputsx
never trigger the warning. The warning is:(my inputs are 16x16 tensors). Note: despite the warning, the calculated matrix exponential is still correct (when compared with the output of expm::expm() applied to the corresponding matrix (non-tensor). I'm using torch 0.9.1 under R 4.2.2.
Code to replicate the problem:
Output:
I'm concerned that this warning may turn into an error in a future release, and obviously would prefer not to have to worry about an (apparently spurious) warning based on the scale of the inputs. Any ideas?
Session info:
The text was updated successfully, but these errors were encountered: