fix expect
authorZachary DeVito <zdevito@fb.com>
Tue, 4 Dec 2018 04:13:19 +0000 (20:13 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 4 Dec 2018 04:15:27 +0000 (20:15 -0800)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/14730

Differential Revision: D13316463

Pulled By: zdevito

fbshipit-source-id: 8b11bdb22d354c17bf2de4bded352bb6eb086ec7

test/expect/TestScript.test_mutable_dce.expect
test/expect/TestScript.test_mutable_dce_block.expect
test/expect/TestScript.test_mutable_dce_graph_input.expect
test/expect/TestScript.test_mutable_dce_list.expect
test/expect/TestScript.test_mutable_dce_loop.expect

index 97ad8f0..b6c4351 100644 (file)
@@ -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]()
index 5e6c69f..50e9d65 100644 (file)
@@ -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]()
index fb4330a..054ec40 100644 (file)
@@ -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]()
index e348570..da8c68e 100644 (file)
@@ -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]()
index eb2a997..6a4dcc4 100644 (file)
@@ -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]()