Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz and coderabbitai[bot] authored Jun 6, 2024
1 parent 93d3f1d commit 30b6f0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/tests/pt/model/test_smooth_denoise.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def test(
)
generator = torch.Generator(device="cpu").manual_seed(GLOBAL_SEED)
coord1 = torch.rand(
[natoms - coord0.shape[0], 3], dtype=dtype, genreator=generator
[natoms - coord0.shape[0], 3], dtype=dtype, generator=generator
).to(env.DEVICE)
coord1 = torch.matmul(coord1, cell)
coord = torch.concat([coord0, coord1], dim=0)
Expand Down
2 changes: 1 addition & 1 deletion source/tests/pt/model/test_trans_denoise.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test(
coord = torch.rand([natoms, 3], dtype=dtype).to(env.DEVICE)
coord = torch.matmul(coord, cell)
atype = torch.IntTensor([0, 0, 0, 1, 1]).to(env.DEVICE)
shift = (torch.rand([3], dtype=dtype, generaotr=generator) - 0.5).to(
shift = (torch.rand([3], dtype=dtype, generator=generator) - 0.5).to(
env.DEVICE
) * 2.0
coord_s = torch.matmul(
Expand Down

0 comments on commit 30b6f0f

Please sign in to comment.