We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65e06df commit f3dd556Copy full SHA for f3dd556
test/test_jit.py
@@ -886,9 +886,9 @@ def f(x):
886
traced = torch.jit.trace(f, (x,))
887
f(x)
888
graph = traced.graph_for(x)
889
- # There should be 4 int constants for the right sides of operators, plus two
890
- # for alpha arguments for add and sub
891
- self.assertTrue(str(traced.graph_for(x)).count(': int = prim::Constant'), 6)
+ # There should be 4 int constants for the right sides of operators, plus one
+ # for the alpha argument for add and sub
+ self.assertTrue(str(traced.graph_for(x)).count(': int = prim::Constant') == 5)
892
893
# TODO: adapt this test to check that GraphExecutor treats them differently
894
@unittest.skip("Need to be adjusted to Graph Executor")
0 commit comments