mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-20 03:23:00 +08:00
Fix test.
This commit is contained in:
parent
e1e50e017c
commit
b440a2bde9
@ -115,7 +115,8 @@ class TestMixedPrecisionOps(unittest.TestCase):
|
|||||||
|
|
||||||
# Forward pass
|
# Forward pass
|
||||||
input_tensor = torch.randn(5, 10, dtype=torch.bfloat16)
|
input_tensor = torch.randn(5, 10, dtype=torch.bfloat16)
|
||||||
output = model(input_tensor)
|
with torch.inference_mode():
|
||||||
|
output = model(input_tensor)
|
||||||
|
|
||||||
self.assertEqual(output.shape, (5, 40))
|
self.assertEqual(output.shape, (5, 40))
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user