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
69d2e38f
Unverified
Commit
69d2e38f
authored
Dec 16, 2020
by
Paul Fultz II
Committed by
GitHub
Dec 16, 2020
Browse files
Add missing has_op function (#704)
* Add missing has_op function * Formatting
parent
406afeb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/register_op.cpp
src/register_op.cpp
+2
-0
No files found.
src/register_op.cpp
View file @
69d2e38f
...
...
@@ -16,6 +16,8 @@ operation load_op(const std::string& name)
return
at
(
op_map
(),
name
,
"Operator not found: "
+
name
);
}
bool
has_op
(
const
std
::
string
&
name
)
{
return
op_map
().
count
(
name
)
==
1
;
}
std
::
vector
<
std
::
string
>
get_operators
()
{
std
::
vector
<
std
::
string
>
result
;
...
...
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