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
4418bf77
"git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "77b89a20ccfdea29827d91f6f2422dee54adb5c9"
Commit
4418bf77
authored
May 30, 2023
by
Ted Themistokleous
Browse files
Add greater operator to gatherND filter model
parent
eeedc246
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
test/onnx/gen_onnx.py
test/onnx/gen_onnx.py
+16
-2
No files found.
test/onnx/gen_onnx.py
View file @
4418bf77
...
@@ -2184,10 +2184,24 @@ def gatherND_gtn_filter():
...
@@ -2184,10 +2184,24 @@ def gatherND_gtn_filter():
y
=
helper
.
make_tensor_value_info
(
'y'
,
TensorProto
.
FLOAT
,
[
10
,
1
])
y
=
helper
.
make_tensor_value_info
(
'y'
,
TensorProto
.
FLOAT
,
[
10
,
1
])
yt
=
helper
.
make_tensor_value_info
(
'yt'
,
TensorProto
.
FLOAT
,
[
10
,
1
])
yt
=
helper
.
make_tensor_value_info
(
'yt'
,
TensorProto
.
FLOAT
,
[
10
,
1
])
yn
=
helper
.
make_tensor_value_info
(
'yn'
,
TensorProto
.
FLOAT
,
[
1
,
10
])
yn
=
helper
.
make_tensor_value_info
(
'yn'
,
TensorProto
.
FLOAT
,
[
1
,
10
])
yg
=
helper
.
make_tensor_value_info
(
'yg'
,
TensorProto
.
FLOAT
,
[
1
,
10
])
thresh_const
=
helper
.
make_node
(
'Constant'
,
inputs
=
[],
outputs
=
[
'thresh'
],
value
=
0.5
,
)
g_node
=
onnx
.
helper
.
make_node
(
'Greater'
,
inputs
=
[
'indices'
,
'thresh'
],
outputs
=
[
'yg'
],
)
n_node
=
onnx
.
helper
.
make_node
(
n_node
=
onnx
.
helper
.
make_node
(
'NonZero'
,
'NonZero'
,
inputs
=
[
'
indices
'
],
inputs
=
[
'
yg
'
],
outputs
=
[
'yn'
],
outputs
=
[
'yn'
],
)
)
...
@@ -2205,7 +2219,7 @@ def gatherND_gtn_filter():
...
@@ -2205,7 +2219,7 @@ def gatherND_gtn_filter():
batch_dims
=
1
,
batch_dims
=
1
,
)
)
return
([
n_node
,
t_node
,
node
],
[
data
,
indices
],
[
y
])
return
([
thresh_const
,
g_node
,
n_node
,
t_node
,
node
],
[
data
,
indices
],
[
y
])
@
onnx_test
()
@
onnx_test
()
...
...
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