We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 128cc86 commit 5bcd895Copy full SHA for 5bcd895
thunder/tests/test_dynamo.py
@@ -866,10 +866,8 @@ def checkpoint_fn(x):
866
y_ref = fn(x)
867
torch.testing.assert_close(y, y_ref)
868
869
- if op == torch.sin:
870
- assert peak_mem_usage == x.nbytes * 2
871
- else:
872
- assert peak_mem_usage == x.nbytes * 3
+ assert peak_mem_usage == x.nbytes * 2
+ if op == torch.sinc:
873
# Make sure the checkpointed region falled back to PyTorch
874
sinfo = jfn._backend.subgraph_infos[-1]
875
assert any(n.name.startswith("inductor") for n in sinfo.split_graph_module.graph.nodes)
0 commit comments