Skip to content

Commit c4cf112

Browse files
authored
fix the test cases for constantofshape (#1746)
1 parent d902349 commit c4cf112

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

docs/Operators.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2168,12 +2168,12 @@ expect(node, inputs=[x], outputs=[y],
21682168

21692169

21702170
<details>
2171-
<summary>int_zeros</summary>
2171+
<summary>int32_zeros</summary>
21722172

21732173
```python
21742174
x = np.array([10, 6])
21752175
tensor_value = onnx.helper.make_tensor("value", onnx.TensorProto.INT32,
2176-
[1], [1])
2176+
[1], [0])
21772177
node = onnx.helper.make_node(
21782178
'ConstantOfShape',
21792179
inputs=['x'],

docs/TestCoverage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,12 +1195,12 @@ expect(node, inputs=[x], outputs=[y],
11951195

11961196
</details>
11971197
<details>
1198-
<summary>int_zeros</summary>
1198+
<summary>int32_zeros</summary>
11991199

12001200
```python
12011201
x = np.array([10, 6])
12021202
tensor_value = onnx.helper.make_tensor("value", onnx.TensorProto.INT32,
1203-
[1], [1])
1203+
[1], [0])
12041204
node = onnx.helper.make_node(
12051205
'ConstantOfShape',
12061206
inputs=['x'],

onnx/backend/test/case/node/constantofshape.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ def export_float_ones(): # type: () -> None
2929
name='test_constantofshape_float_ones')
3030

3131
@staticmethod
32-
def export_int_zeros(): # type: () -> None
32+
def export_int32_zeros(): # type: () -> None
3333
x = np.array([10, 6])
3434
tensor_value = onnx.helper.make_tensor("value", onnx.TensorProto.INT32,
35-
[1], [1])
35+
[1], [0])
3636
node = onnx.helper.make_node(
3737
'ConstantOfShape',
3838
inputs=['x'],
Binary file not shown.

0 commit comments

Comments
 (0)