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
9d174e76
Commit
9d174e76
authored
Oct 12, 2022
by
Ted Themistokleous
Browse files
Fix format in gen_onnx.py
parent
e05b63f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
test/onnx/gen_onnx.py
test/onnx/gen_onnx.py
+3
-6
No files found.
test/onnx/gen_onnx.py
View file @
9d174e76
...
@@ -2266,8 +2266,7 @@ def if_then_trailing_one_shape_test():
...
@@ -2266,8 +2266,7 @@ def if_then_trailing_one_shape_test():
y
=
onnx
.
helper
.
make_tensor_value_info
(
'y'
,
onnx
.
TensorProto
.
FLOAT
,
[
2
,
1
])
y
=
onnx
.
helper
.
make_tensor_value_info
(
'y'
,
onnx
.
TensorProto
.
FLOAT
,
[
2
,
1
])
then_out
=
onnx
.
helper
.
make_tensor_value_info
(
'then_out'
,
then_out
=
onnx
.
helper
.
make_tensor_value_info
(
'then_out'
,
onnx
.
TensorProto
.
FLOAT
,
onnx
.
TensorProto
.
FLOAT
,
[
2
])
[
2
])
else_out
=
onnx
.
helper
.
make_tensor_value_info
(
'else_out'
,
else_out
=
onnx
.
helper
.
make_tensor_value_info
(
'else_out'
,
onnx
.
TensorProto
.
FLOAT
,
onnx
.
TensorProto
.
FLOAT
,
[
2
,
1
])
[
2
,
1
])
...
@@ -2578,8 +2577,7 @@ def if_else_trailing_one_shape_test():
...
@@ -2578,8 +2577,7 @@ def if_else_trailing_one_shape_test():
onnx
.
TensorProto
.
FLOAT
,
onnx
.
TensorProto
.
FLOAT
,
[
2
,
1
])
[
2
,
1
])
else_out
=
onnx
.
helper
.
make_tensor_value_info
(
'else_out'
,
else_out
=
onnx
.
helper
.
make_tensor_value_info
(
'else_out'
,
onnx
.
TensorProto
.
FLOAT
,
onnx
.
TensorProto
.
FLOAT
,
[
2
])
[
2
])
xt
=
np
.
ones
((
2
,
1
)).
astype
(
np
.
float
)
xt
=
np
.
ones
((
2
,
1
)).
astype
(
np
.
float
)
xt_tensor
=
helper
.
make_tensor
(
name
=
'xt'
,
xt_tensor
=
helper
.
make_tensor
(
name
=
'xt'
,
...
@@ -2628,8 +2626,7 @@ def if_then_empty_shape_test():
...
@@ -2628,8 +2626,7 @@ def if_then_empty_shape_test():
y
=
onnx
.
helper
.
make_tensor_value_info
(
'y'
,
onnx
.
TensorProto
.
FLOAT
,
[
2
,
3
])
y
=
onnx
.
helper
.
make_tensor_value_info
(
'y'
,
onnx
.
TensorProto
.
FLOAT
,
[
2
,
3
])
then_out
=
onnx
.
helper
.
make_tensor_value_info
(
'then_out'
,
then_out
=
onnx
.
helper
.
make_tensor_value_info
(
'then_out'
,
onnx
.
TensorProto
.
FLOAT
,
onnx
.
TensorProto
.
FLOAT
,
[])
[])
else_out
=
onnx
.
helper
.
make_tensor_value_info
(
'else_out'
,
else_out
=
onnx
.
helper
.
make_tensor_value_info
(
'else_out'
,
onnx
.
TensorProto
.
FLOAT
,
onnx
.
TensorProto
.
FLOAT
,
[
2
,
3
])
[
2
,
3
])
...
...
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