torchdyn icon indicating copy to clipboard operation
torchdyn copied to clipboard

Changed boolean statement to work with arrays

Open Ubiquinone-dot opened this issue 1 year ago • 0 comments

Fixes the following error which I ran into: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

The k1 array passed in this case is of shape (batch_size, n_atoms, 3)

Ubiquinone-dot avatar Mar 28 '24 16:03 Ubiquinone-dot