Skip to content

Commit

Permalink
explicitly use float32
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvegamyhre committed Feb 7, 2025
1 parent 533e027 commit 69dbadb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/float8/test_float8_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def test_round_scale_down_to_power_of_2_valid_inputs(
):
test_case_name, (input, expected_result) = test_case
input_tensor, expected_tensor = (
torch.tensor(input).cuda(),
torch.tensor(expected_result).cuda(),
torch.tensor(input, dtype=torch.float32).cuda(),
torch.tensor(expected_result, dtype=torch.float32).cuda(),
)
result = _round_scale_down_to_power_of_2(input_tensor)

Expand Down

0 comments on commit 69dbadb

Please sign in to comment.