@@ -95,8 +95,8 @@ def test_str(self):
9595 str (trace )
9696 == dedent (
9797 """
98- a = storage(data=[0], shape=(1,), dtype=int32, device=gpu:0)
99- b = storage(data=[1], shape=(1,), dtype=int32, device=gpu:0)
98+ a = storage(data=[0], shape=(1,), stride=(1,), dtype=int32, device=gpu:0)
99+ b = storage(data=[1], shape=(1,), stride=(1,), dtype=int32, device=gpu:0)
100100 c = a + b
101101 outputs:
102102 c: [rank=(1), dtype=(int32), loc=(gpu:0)]
@@ -133,8 +133,8 @@ def test_multiple_outputs(self):
133133 str (trace )
134134 == dedent (
135135 """
136- a = storage(data=[1.0000], shape=(1,), dtype=float32, device=gpu:0)
137- b = storage(data=[1.0000], shape=(1,), dtype=float32, device=gpu:0)
136+ a = storage(data=[1.0000], shape=(1,), stride=(1,), dtype=float32, device=gpu:0)
137+ b = storage(data=[1.0000], shape=(1,), stride=(1,), dtype=float32, device=gpu:0)
138138 c = a + b
139139 d = c + c
140140 outputs:
@@ -168,8 +168,8 @@ def test_all_inputs(self):
168168 == dedent (
169169 """
170170 inputs:
171- a: [rank=(1), shape=((1,)), dtype=(float32), loc=(gpu:0)]
172- b: [rank=(1), shape=((1,)), dtype=(float32), loc=(gpu:0)]
171+ a: [rank=(1), shape=((1,)), stride=((1,)), dtype=(float32), loc=(gpu:0)]
172+ b: [rank=(1), shape=((1,)), stride=((1,)), dtype=(float32), loc=(gpu:0)]
173173 c = a + b
174174 outputs:
175175 c: [rank=(1), dtype=(float32), loc=(gpu:0)]
@@ -191,8 +191,8 @@ def test_const_and_input(self):
191191 == dedent (
192192 """
193193 inputs:
194- a: [rank=(1), shape=((1,)), dtype=(float32), loc=(gpu:0)]
195- b = storage(data=[1.0000], shape=(1,), dtype=float32, device=gpu:0)
194+ a: [rank=(1), shape=((1,)), stride=((1,)), dtype=(float32), loc=(gpu:0)]
195+ b = storage(data=[1.0000], shape=(1,), stride=(1,), dtype=float32, device=gpu:0)
196196 c = a + b
197197 outputs:
198198 c: [rank=(1), dtype=(float32), loc=(gpu:0)]
0 commit comments