Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
co63oc committed Jul 25, 2023
1 parent 111928e commit 0625052
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_nn_Module_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_case_1():
x = torch.tensor([1., 2., 3.])
module1 = torch.nn.Module()
module1.register_buffer('buffer', x)
module1.type(torch.float32)
module1.type_unsupport(torch.float32)
result = module1.buffer
"""
)
Expand All @@ -45,7 +45,7 @@ def test_case_2():
x = torch.tensor([1., 2., 3.])
module1 = torch.nn.Module()
module1.register_buffer('buffer', x)
module1.type(dst_type=torch.float32)
module1.type_unsupport(dst_type=torch.float32)
result = module1.buffer
"""
)
Expand Down

0 comments on commit 0625052

Please sign in to comment.