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
566320ec
Unverified
Commit
566320ec
authored
Oct 31, 2019
by
Farhad Ramezanghorbani
Committed by
GitHub
Oct 31, 2019
Browse files
Fix CUDA support in AEVComputer (#350)
* fix cuda support * Update aev.py
parent
38573358
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
torchani/aev.py
torchani/aev.py
+1
-1
No files found.
torchani/aev.py
View file @
566320ec
...
@@ -362,7 +362,7 @@ class AEVComputer(torch.nn.Module):
...
@@ -362,7 +362,7 @@ class AEVComputer(torch.nn.Module):
self
.
aev_length
=
self
.
radial_length
+
self
.
angular_length
self
.
aev_length
=
self
.
radial_length
+
self
.
angular_length
self
.
sizes
=
self
.
num_species
,
self
.
radial_sublength
,
self
.
radial_length
,
self
.
angular_sublength
,
self
.
angular_length
,
self
.
aev_length
self
.
sizes
=
self
.
num_species
,
self
.
radial_sublength
,
self
.
radial_length
,
self
.
angular_sublength
,
self
.
angular_length
,
self
.
aev_length
self
.
register_buffer
(
'triu_index'
,
triu_index
(
num_species
))
self
.
register_buffer
(
'triu_index'
,
triu_index
(
num_species
)
.
to
(
device
=
self
.
EtaR
.
device
)
)
# Set up default cell and compute default shifts.
# Set up default cell and compute default shifts.
# These values are used when cell and pbc switch are not given.
# These values are used when cell and pbc switch are not given.
...
...
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