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

Type error in compositionality #55

Open
prata-uece opened this issue Oct 8, 2021 · 0 comments
Open

Type error in compositionality #55

prata-uece opened this issue Oct 8, 2021 · 0 comments

Comments

@prata-uece
Copy link

The try-except was removed from the following block:
try:
succ_grad = evaluate_derivatives(pathdir,filename,model_feynman)
except:
succ_grad = 0
Execution error at grad_evaluated = evaluate_derivatives(directory, filename, model_feynman)
File “.../site-packages/torch/nn/functional.py”, line 1847, in linear
return torch._C._nn.linear(input, weight, bias)
RuntimeError: expected scalar type Float but found Double
Operation: evaluate_derivatives (in S_NN_get_gradients.py), after printing “Checking for compositionality...”
Line:
pts = torch.tensor(pts)
Partial traceback:
File “.../site-packages/torch/nn/functional.py”, line 1847, in linear
return torch._C._nn.linear(input, weight, bias)
RuntimeError: expected scalar type Float but found Double
The above error occurs every time “evaluate_derivatives” is called, which implies that “compositionality” never succeeds.
Request: would it be possible, if this bug is corrected, to also update the code on PyPI?

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

1 participant