Skip to content

Commit 5bcd895

Browse files
committed
Update test
1 parent 128cc86 commit 5bcd895

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

thunder/tests/test_dynamo.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -866,10 +866,8 @@ def checkpoint_fn(x):
866866
y_ref = fn(x)
867867
torch.testing.assert_close(y, y_ref)
868868

869-
if op == torch.sin:
870-
assert peak_mem_usage == x.nbytes * 2
871-
else:
872-
assert peak_mem_usage == x.nbytes * 3
869+
assert peak_mem_usage == x.nbytes * 2
870+
if op == torch.sinc:
873871
# Make sure the checkpointed region falled back to PyTorch
874872
sinfo = jfn._backend.subgraph_infos[-1]
875873
assert any(n.name.startswith("inductor") for n in sinfo.split_graph_module.graph.nodes)

0 commit comments

Comments
 (0)