Cleanup testFusion/testOne: there are unused arguments.
authorMikhail Zolotukhin <mvz@fb.com>
Thu, 7 Mar 2019 19:13:48 +0000 (11:13 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 7 Mar 2019 19:19:24 +0000 (11:19 -0800)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/17737

Differential Revision: D14366584

Pulled By: ZolotukhinM

fbshipit-source-id: 3c2dd2aabfecca475909e4eec4a077d900795da9

test/cpp/jit/test_misc.h

index e2ea958..1c7456b 100644 (file)
@@ -150,7 +150,7 @@ void testFusion() {
   };
   testSimple();
 
-  auto testOne = [&](int ti, int tj, int toi, int toj) {
+  auto testOne = [&](int ti, int tj) {
     Graph graph;
 
     Var i0 = Var::asNewInput(graph);
@@ -200,14 +200,10 @@ void testFusion() {
     float max_diff = (outputs.front() - out0).abs().max().item<double>();
     ASSERT_TRUE(max_diff < 1e-6);
   };
-  testOne(0, 0, 0, 0);
-  testOne(0, 1, 0, 0);
-  testOne(1, 2, 0, 0);
-  testOne(0, 2, 0, 0);
-
-  testOne(0, 0, 0, 1);
-  testOne(0, 1, 1, 2);
-  testOne(1, 2, 0, 2);
+  testOne(0, 0);
+  testOne(0, 1);
+  testOne(1, 2);
+  testOne(0, 2);
 
   auto createFusedConcat =
       [](Graph& graph, at::ArrayRef<Value*> inputs, int64_t dim) -> Value* {