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
10c42663
Unverified
Commit
10c42663
authored
Jun 02, 2023
by
Chris Austen
Committed by
GitHub
Jun 02, 2023
Browse files
replace np.bool with bool as per numpy request (#1640)
parent
49b341d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test/onnx/gen_onnx.py
test/onnx/gen_onnx.py
+4
-4
No files found.
test/onnx/gen_onnx.py
View file @
10c42663
...
...
@@ -2612,7 +2612,7 @@ def if_else_test_inlined():
else_body
=
onnx
.
helper
.
make_graph
([
else_mul_node
],
'else_body'
,
[],
[
else_out
])
cond
=
np
.
array
([
0
]).
astype
(
np
.
bool
)
cond
=
np
.
array
([
0
]).
astype
(
bool
)
cond_tensor
=
helper
.
make_tensor
(
name
=
"cond"
,
data_type
=
TensorProto
.
BOOL
,
dims
=
cond
.
shape
,
...
...
@@ -2682,7 +2682,7 @@ def if_then_else_multi_output_shapes_inlined_test():
else_body
=
onnx
.
helper
.
make_graph
([
else_mul_node
,
else_sub_node
],
'else_body'
,
[],
[
else_out
,
else_out2
])
cond
=
np
.
array
([
1
]).
astype
(
np
.
bool
)
cond
=
np
.
array
([
1
]).
astype
(
bool
)
cond_tensor
=
helper
.
make_tensor
(
name
=
"cond"
,
data_type
=
TensorProto
.
BOOL
,
dims
=
cond
.
shape
,
...
...
@@ -3117,7 +3117,7 @@ def if_then_test_inlined():
else_body
=
onnx
.
helper
.
make_graph
([
else_mul_node
],
'else_body'
,
[],
[
else_out
])
cond
=
np
.
array
([
1
]).
astype
(
np
.
bool
)
cond
=
np
.
array
([
1
]).
astype
(
bool
)
cond_tensor
=
helper
.
make_tensor
(
name
=
"cond"
,
data_type
=
TensorProto
.
BOOL
,
dims
=
cond
.
shape
,
...
...
@@ -6902,7 +6902,7 @@ def sum_type_test():
t_bool
=
helper
.
make_tensor
(
name
=
"bool"
,
data_type
=
TensorProto
.
BOOL
,
dims
=
valb
.
shape
,
vals
=
valb
.
astype
(
np
.
bool
))
vals
=
valb
.
astype
(
bool
))
val
=
np
.
array
([
1
,
1
])
t_int8
=
helper
.
make_tensor
(
name
=
"int8"
,
...
...
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