Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torchani
Commits
4f30aae0
Unverified
Commit
4f30aae0
authored
Apr 29, 2020
by
Rocco Meli
Committed by
GitHub
Apr 29, 2020
Browse files
fix #461 (#462)
parent
b12e7e6e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchani/nn.py
torchani/nn.py
+1
-1
No files found.
torchani/nn.py
View file @
4f30aae0
...
...
@@ -123,4 +123,4 @@ class SpeciesConverter(torch.nn.Module):
pbc
:
Optional
[
Tensor
]
=
None
):
"""Convert species from periodic table element index to 0, 1, 2, 3, ... indexing"""
species
,
coordinates
=
input_
return
SpeciesCoordinates
(
self
.
conv_tensor
[
species
],
coordinates
)
return
SpeciesCoordinates
(
self
.
conv_tensor
[
species
]
.
to
(
species
.
device
)
,
coordinates
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment