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 863cc53 commit 87d5fb6
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 @@ -29,5 +29,6 @@ def test_str_to_torch_dtype_exit():

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)
assert data_type_utils.get_torch_dtype(dtype_dict.get(t)) == dtype_dict.get(t)

0 comments on commit 87d5fb6

Please sign in to comment.