Skip to content

Commit 9110c76

Browse files
anijain2305facebook-github-bot
authored andcommitted
Clear out Dynamo cache in between tests
Summary: This issue was discovered when we tried to land https://www.internalfb.com/diff/D66189091. There is nothing wrong with D66189091, it just changes the way Dynamo invalidates its cache entry. However, it upsets these tests because they unintentionally rely on the Dynamo old behavior of invalidting cache entries. Reviewed By: kimishpatel Differential Revision: D66255174
1 parent 359e9d3 commit 9110c76

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backends/xnnpack/test/ops/linear.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ def _test_linear(
497497
which ares then transformed into aten.linear.default by the ConvertToLinear pass.
498498
"""
499499
for i, _ in enumerate(in_sizes):
500+
torch._dynamo.reset()
500501
in_size = int(in_sizes[i])
501502
input_size = int(input_sizes[i])
502503
output_size = int(output_sizes[i])

0 commit comments

Comments
 (0)