From: Zachary DeVito Date: Tue, 4 Dec 2018 04:13:19 +0000 (-0800) Subject: fix expect X-Git-Tag: accepted/tizen/6.5/unified/20211028.231830~2520 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a932b8b901f03d8f9e0f10bc4fcdaff14d8638f;p=platform%2Fupstream%2Fpytorch.git fix expect Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/14730 Differential Revision: D13316463 Pulled By: zdevito fbshipit-source-id: 8b11bdb22d354c17bf2de4bded352bb6eb086ec7 --- diff --git a/test/expect/TestScript.test_mutable_dce.expect b/test/expect/TestScript.test_mutable_dce.expect index 97ad8f0..b6c4351 100644 --- a/test/expect/TestScript.test_mutable_dce.expect +++ b/test/expect/TestScript.test_mutable_dce.expect @@ -1,6 +1,6 @@ graph() { %0 : int = prim::Constant[value=1]() - %1 : int[] = prim::Constant[value=[0, -1]]() + %1 : Device = prim::Constant[value="cpu"]() %2 : int = prim::Constant[value=0]() %3 : int = prim::Constant[value=6]() %4 : int = prim::Constant[value=2]() diff --git a/test/expect/TestScript.test_mutable_dce_block.expect b/test/expect/TestScript.test_mutable_dce_block.expect index 5e6c69f..50e9d65 100644 --- a/test/expect/TestScript.test_mutable_dce_block.expect +++ b/test/expect/TestScript.test_mutable_dce_block.expect @@ -1,6 +1,6 @@ graph() { %0 : int = prim::Constant[value=1]() - %1 : int[] = prim::Constant[value=[0, -1]]() + %1 : Device = prim::Constant[value="cpu"]() %2 : int = prim::Constant[value=0]() %3 : int = prim::Constant[value=6]() %4 : int = prim::Constant[value=2]() diff --git a/test/expect/TestScript.test_mutable_dce_graph_input.expect b/test/expect/TestScript.test_mutable_dce_graph_input.expect index fb4330a..054ec40 100644 --- a/test/expect/TestScript.test_mutable_dce_graph_input.expect +++ b/test/expect/TestScript.test_mutable_dce_graph_input.expect @@ -1,6 +1,6 @@ graph(%a.1 : Tensor) { %1 : int = prim::Constant[value=1]() - %2 : int[] = prim::Constant[value=[0, -1]]() + %2 : Device = prim::Constant[value="cpu"]() %3 : int = prim::Constant[value=0]() %4 : int = prim::Constant[value=6]() %5 : int = prim::Constant[value=2]() diff --git a/test/expect/TestScript.test_mutable_dce_list.expect b/test/expect/TestScript.test_mutable_dce_list.expect index e348570..da8c68e 100644 --- a/test/expect/TestScript.test_mutable_dce_list.expect +++ b/test/expect/TestScript.test_mutable_dce_list.expect @@ -1,6 +1,6 @@ graph(%a : Tensor) { %1 : int = prim::Constant[value=1]() - %2 : int[] = prim::Constant[value=[0, -1]]() + %2 : Device = prim::Constant[value="cpu"]() %3 : int = prim::Constant[value=6]() %4 : int = prim::Constant[value=0]() %5 : int = prim::Constant[value=2]() diff --git a/test/expect/TestScript.test_mutable_dce_loop.expect b/test/expect/TestScript.test_mutable_dce_loop.expect index eb2a997..6a4dcc4 100644 --- a/test/expect/TestScript.test_mutable_dce_loop.expect +++ b/test/expect/TestScript.test_mutable_dce_loop.expect @@ -1,5 +1,5 @@ graph(%a : Tensor) { - %1 : int[] = prim::Constant[value=[0, -1]]() + %1 : Device = prim::Constant[value="cpu"]() %2 : int = prim::Constant[value=6]() %i.1 : int = prim::Constant[value=0]() %4 : int = prim::Constant[value=2]()