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
21fcd8f4
"...text-generation-inference.git" did not exist on "c4422e567811051e40469551c58a8078158a6656"
Unverified
Commit
21fcd8f4
authored
Mar 04, 2019
by
Gao, Xiang
Committed by
GitHub
Mar 04, 2019
Browse files
Use & and | instead of + and * (#173)
parent
7f4f0391
Changes
1
Hide 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 @
21fcd8f4
...
...
@@ -230,9 +230,9 @@ class AEVComputer(torch.nn.Module):
species_a1
,
species_a2
=
self
.
_combinations
(
species_a
,
-
1
)
mask_a1
=
(
species_a1
.
unsqueeze
(
-
1
)
==
present_species
).
unsqueeze
(
-
1
)
mask_a2
=
(
species_a2
.
unsqueeze
(
-
1
).
unsqueeze
(
-
1
)
==
present_species
)
mask
=
mask_a1
*
mask_a2
mask
=
mask_a1
&
mask_a2
mask_rev
=
mask
.
permute
(
0
,
1
,
2
,
4
,
3
)
mask_a
=
(
mask
+
mask_rev
)
>
0
mask_a
=
mask
|
mask_rev
return
mask_a
def
_assemble
(
self
,
radial_terms
,
angular_terms
,
present_species
,
...
...
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