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
0317936f
Commit
0317936f
authored
Aug 10, 2022
by
charlie
Browse files
Initial
parent
8343d47d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
src/include/migraphx/op/nonzero.hpp
src/include/migraphx/op/nonzero.hpp
+8
-0
No files found.
src/include/migraphx/op/nonzero.hpp
View file @
0317936f
...
@@ -39,6 +39,14 @@ namespace op {
...
@@ -39,6 +39,14 @@ namespace op {
struct
nonzero
struct
nonzero
{
{
bool
use_dynamic
=
false
;
template
<
class
Self
,
class
F
>
static
auto
reflect
(
Self
&
self
,
F
f
)
{
return
pack
(
f
(
self
.
use_dynamic
,
"use_dynamic"
));
}
std
::
string
name
()
const
{
return
"nonzero"
;
}
std
::
string
name
()
const
{
return
"nonzero"
;
}
shape
compute_shape
(
std
::
vector
<
shape
>
inputs
)
const
shape
compute_shape
(
std
::
vector
<
shape
>
inputs
)
const
...
...
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