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
8f992e4a
Commit
8f992e4a
authored
Aug 14, 2019
by
Shucai Xiao
Browse files
add an additional check for the capture operator
parent
eab3cafb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/include/migraphx/op/capture.hpp
src/include/migraphx/op/capture.hpp
+9
-1
No files found.
src/include/migraphx/op/capture.hpp
View file @
8f992e4a
...
@@ -32,7 +32,15 @@ struct capture
...
@@ -32,7 +32,15 @@ struct capture
argument
compute
(
const
shape
&
,
std
::
vector
<
argument
>
args
)
const
argument
compute
(
const
shape
&
,
std
::
vector
<
argument
>
args
)
const
{
{
f
(
ins_index
,
args
);
if
(
f
)
{
f
(
ins_index
,
args
);
}
else
{
MIGRAPHX_THROW
(
"CAPTURE: callback function is not callable!"
);
}
return
args
.
front
();
return
args
.
front
();
}
}
};
};
...
...
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