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
51d76c98
"git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "2e58f18acf0d672ef1214d7388e6dabed3b5723f"
Unverified
Commit
51d76c98
authored
Feb 12, 2020
by
Richard Xue
Committed by
GitHub
Feb 12, 2020
Browse files
Update aev.py (#418)
parent
00dd8cba
Changes
1
Hide 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 @
51d76c98
...
@@ -36,7 +36,7 @@ def radial_terms(Rcr: float, EtaR: Tensor, ShfR: Tensor, distances: Tensor) -> T
...
@@ -36,7 +36,7 @@ def radial_terms(Rcr: float, EtaR: Tensor, ShfR: Tensor, distances: Tensor) -> T
ret
=
0.25
*
torch
.
exp
(
-
EtaR
*
(
distances
-
ShfR
)
**
2
)
*
fc
ret
=
0.25
*
torch
.
exp
(
-
EtaR
*
(
distances
-
ShfR
)
**
2
)
*
fc
# At this point, ret now have shape
# At this point, ret now have shape
# (conformations, atoms, N, ?, ?) where ? depend on constants.
# (conformations, atoms, N, ?, ?) where ? depend on constants.
# We then should flat the last
4
dimensions to view the subAEV as one
# We then should flat the last
2
dimensions to view the subAEV as one
# dimension vector
# dimension vector
return
ret
.
flatten
(
start_dim
=-
2
)
return
ret
.
flatten
(
start_dim
=-
2
)
...
...
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