Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
d8952ebf
Commit
d8952ebf
authored
Oct 21, 2022
by
Ted Themistokleous
Browse files
Fix format
parent
2ae4c715
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
test/onnx/gen_onnx.py
test/onnx/gen_onnx.py
+17
-15
No files found.
test/onnx/gen_onnx.py
View file @
d8952ebf
...
@@ -2870,8 +2870,8 @@ def if_else_empty_constant_multi_output_test():
...
@@ -2870,8 +2870,8 @@ def if_else_empty_constant_multi_output_test():
else_out
=
helper
.
make_tensor_value_info
(
'shape_const'
,
TensorProto
.
INT64
,
else_out
=
helper
.
make_tensor_value_info
(
'shape_const'
,
TensorProto
.
INT64
,
[])
[])
else_out2
=
helper
.
make_tensor_value_info
(
'shape_const2'
,
TensorProto
.
INT64
,
else_out2
=
helper
.
make_tensor_value_info
(
'shape_const2'
,
[])
TensorProto
.
INT64
,
[])
then_out
=
onnx
.
helper
.
make_tensor_value_info
(
'then_out'
,
then_out
=
onnx
.
helper
.
make_tensor_value_info
(
'then_out'
,
onnx
.
TensorProto
.
INT64
,
onnx
.
TensorProto
.
INT64
,
...
@@ -2904,7 +2904,8 @@ def if_else_empty_constant_multi_output_test():
...
@@ -2904,7 +2904,8 @@ def if_else_empty_constant_multi_output_test():
dims
=
cond
.
shape
,
dims
=
cond
.
shape
,
vals
=
cond
.
astype
(
bool
))
vals
=
cond
.
astype
(
bool
))
res
=
onnx
.
helper
.
make_tensor_value_info
(
'res'
,
TensorProto
.
INT64
,
[
2
,
1
])
res
=
onnx
.
helper
.
make_tensor_value_info
(
'res'
,
TensorProto
.
INT64
,
[
2
,
1
])
res2
=
onnx
.
helper
.
make_tensor_value_info
(
'res2'
,
TensorProto
.
INT64
,
[
2
,
1
])
res2
=
onnx
.
helper
.
make_tensor_value_info
(
'res2'
,
TensorProto
.
INT64
,
[
2
,
1
])
node
=
onnx
.
helper
.
make_node
(
'If'
,
node
=
onnx
.
helper
.
make_node
(
'If'
,
inputs
=
[
'cond'
],
inputs
=
[
'cond'
],
...
@@ -2996,8 +2997,8 @@ def if_then_empty_constant_multi_output_test():
...
@@ -2996,8 +2997,8 @@ def if_then_empty_constant_multi_output_test():
then_out
=
helper
.
make_tensor_value_info
(
'shape_const'
,
TensorProto
.
INT64
,
then_out
=
helper
.
make_tensor_value_info
(
'shape_const'
,
TensorProto
.
INT64
,
[])
[])
then_out2
=
helper
.
make_tensor_value_info
(
'shape_const2'
,
TensorProto
.
INT64
,
then_out2
=
helper
.
make_tensor_value_info
(
'shape_const2'
,
[])
TensorProto
.
INT64
,
[])
else_out
=
onnx
.
helper
.
make_tensor_value_info
(
'else_out'
,
else_out
=
onnx
.
helper
.
make_tensor_value_info
(
'else_out'
,
onnx
.
TensorProto
.
INT64
,
onnx
.
TensorProto
.
INT64
,
...
@@ -3031,7 +3032,8 @@ def if_then_empty_constant_multi_output_test():
...
@@ -3031,7 +3032,8 @@ def if_then_empty_constant_multi_output_test():
dims
=
cond
.
shape
,
dims
=
cond
.
shape
,
vals
=
cond
.
astype
(
bool
))
vals
=
cond
.
astype
(
bool
))
res
=
onnx
.
helper
.
make_tensor_value_info
(
'res'
,
TensorProto
.
INT64
,
[
2
,
1
])
res
=
onnx
.
helper
.
make_tensor_value_info
(
'res'
,
TensorProto
.
INT64
,
[
2
,
1
])
res2
=
onnx
.
helper
.
make_tensor_value_info
(
'res2'
,
TensorProto
.
INT64
,
[
2
,
1
])
res2
=
onnx
.
helper
.
make_tensor_value_info
(
'res2'
,
TensorProto
.
INT64
,
[
2
,
1
])
node
=
onnx
.
helper
.
make_node
(
'If'
,
node
=
onnx
.
helper
.
make_node
(
'If'
,
inputs
=
[
'cond'
],
inputs
=
[
'cond'
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment