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
af600d19
Unverified
Commit
af600d19
authored
Jun 03, 2020
by
Ignacio Pickering
Committed by
GitHub
Jun 03, 2020
Browse files
fix typo (#478)
parent
32135d93
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
torchani/aev.py
torchani/aev.py
+2
-2
No files found.
torchani/aev.py
View file @
af600d19
...
@@ -148,10 +148,10 @@ def neighbor_pairs(padding_mask: Tensor, coordinates: Tensor, cell: Tensor,
...
@@ -148,10 +148,10 @@ def neighbor_pairs(padding_mask: Tensor, coordinates: Tensor, cell: Tensor,
prod
=
torch
.
cartesian_prod
(
all_shifts
,
all_atoms
,
all_atoms
).
t
()
prod
=
torch
.
cartesian_prod
(
all_shifts
,
all_atoms
,
all_atoms
).
t
()
shift_index
=
prod
[
0
]
shift_index
=
prod
[
0
]
p12
=
prod
[
1
:]
p12
=
prod
[
1
:]
shifts_outide
=
shifts
.
index_select
(
0
,
shift_index
)
shifts_out
s
ide
=
shifts
.
index_select
(
0
,
shift_index
)
# Step 4: combine results for all cells
# Step 4: combine results for all cells
shifts_all
=
torch
.
cat
([
shifts_center
,
shifts_outide
])
shifts_all
=
torch
.
cat
([
shifts_center
,
shifts_out
s
ide
])
p12_all
=
torch
.
cat
([
p12_center
,
p12
],
dim
=
1
)
p12_all
=
torch
.
cat
([
p12_center
,
p12
],
dim
=
1
)
shift_values
=
shifts_all
.
to
(
cell
.
dtype
)
@
cell
shift_values
=
shifts_all
.
to
(
cell
.
dtype
)
@
cell
...
...
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