Skip to content

Commit

Permalink
Update tests/utils/test_data_type_utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sukriti Sharma <[email protected]>
Signed-off-by: ted chang <[email protected]>
  • Loading branch information
tedhtchang and Ssukriti authored Mar 4, 2024
1 parent 87d5fb6 commit 896b793
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/utils/test_data_type_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ def test_get_torch_dtype():
for t in dtype_dict.keys():
# When passed a string, it gets converted to torch.dtype
assert data_type_utils.get_torch_dtype(t) == dtype_dict.get(t)
# When passed a torch.dtype, we get the same torch.dtype returned
assert data_type_utils.get_torch_dtype(dtype_dict.get(t)) == dtype_dict.get(t)

0 comments on commit 896b793

Please sign in to comment.