Skip to content

Commit

Permalink
Update torch_geometric/nn/models/dimenet.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s committed Apr 29, 2022
1 parent 101f754 commit 133e195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_geometric/nn/models/dimenet.py
Expand Up @@ -46,7 +46,7 @@ def forward(self, x):
x_pow_p1 = x_pow_p0 * x
x_pow_p2 = x_pow_p1 * x
return (1. / x + a * x_pow_p0 + b * x_pow_p1 +
c * x_pow_p2) * (x < 1.0).float()
c * x_pow_p2) * (x < 1.0).to(x.dtype)


class BesselBasisLayer(torch.nn.Module):
Expand Down

0 comments on commit 133e195

Please sign in to comment.