From: Mikhail Zolotukhin Date: Thu, 7 Mar 2019 19:13:48 +0000 (-0800) Subject: Cleanup testFusion/testOne: there are unused arguments. X-Git-Tag: accepted/tizen/6.5/unified/20211028.231830~941 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7bcc2301eef22aad13b2e2ade872800704883727;p=platform%2Fupstream%2Fpytorch.git Cleanup testFusion/testOne: there are unused arguments. Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/17737 Differential Revision: D14366584 Pulled By: ZolotukhinM fbshipit-source-id: 3c2dd2aabfecca475909e4eec4a077d900795da9 --- diff --git a/test/cpp/jit/test_misc.h b/test/cpp/jit/test_misc.h index e2ea958..1c7456b 100644 --- a/test/cpp/jit/test_misc.h +++ b/test/cpp/jit/test_misc.h @@ -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(); 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 inputs, int64_t dim) -> Value* {