"...text-generation-inference.git" did not exist on "c4422e567811051e40469551c58a8078158a6656"
Unverified Commit 21fcd8f4 authored by Gao, Xiang's avatar Gao, Xiang Committed by GitHub
Browse files

Use & and | instead of + and * (#173)

parent 7f4f0391
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment