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

RuntimeError: Expected object of type torch.FloatTensor but found type torch.DoubleTensor for argument #3 'other' #14

Open
jihaonew opened this issue Apr 11, 2019 · 2 comments

Comments

@jihaonew
Copy link

The error occurs in functions/LBFGS.py, line 854.
I think this error comes from t. It becomes a double precision number with the process of convergence.
I tried

if(F_new > F_k + (c1*t*gtd).float()):

or

if(F_new.double() > F_k.double() + (c1*t*gtd)):

However, if I do so, the loss will not decrease any more.

@hjmshi
Copy link
Owner

hjmshi commented Apr 11, 2019

Thanks! Let me look into it. Is this with a particular network or problem that you are looking at?

@jihaonew
Copy link
Author

I working on a non-linear least squares problem with highly-dense Jacobian.

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