Skip to content

Commit 4b8aea1

Browse files
alugoreydnikolaev-amd
authored andcommitted
Enable fp8 inductor unit tests (#1421)
* Add formal FP8 check in common_cuda.py * Enable inductor/test_valid_cast * Support for test_eager_fallback * allow fnuz types on amax test * Finalize passing tests vs failing * Fix fnuz constants in _to_fp8_saturated
1 parent da0e1b4 commit 4b8aea1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/inductor/test_fp8.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ def fp8_cast(x):
156156

157157
torch.testing.assert_close(y0_fp8, x, rtol=5e-1, atol=5e-1)
158158
torch.testing.assert_close(y1_fp8, x, rtol=5e-1, atol=5e-1)
159+
159160

160161
@unittest.skipIf(not PLATFORM_SUPPORTS_FP8, f8_msg)
161162
def test_bad_cast(self):

0 commit comments

Comments
 (0)