aiqm / torchani

Accurate Neural Network Potential on PyTorch
https://aiqm.github.io/torchani/
MIT License
464 stars 128 forks source link

Remove deprecated nonzero calls [WIP] #492

Closed IgnacioJPickering closed 2 years ago

IgnacioJPickering commented 4 years ago

The way we are calling nonzero in AEV computations is deprecated in the latest pytorch build

IgnacioJPickering commented 4 years ago

@zasdfgbnm calling without as_tuple is deprecated... but as_tuple is not jittable?

zasdfgbnm commented 4 years ago

Errr, that's bad. Maybe you can file an issue to PyTorch?

IgnacioJPickering commented 4 years ago

pytorch/pytorch#40601 I'll see what they say

RMeli commented 2 years ago

This appears to be the relevant PyTorch issue now: https://github.com/pytorch/pytorch/issues/45499