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
d16e37d2
Commit
d16e37d2
authored
Aug 14, 2018
by
wsttiger
Browse files
Formatting
parent
ec888811
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/onnx/resnet18.cpp
src/onnx/resnet18.cpp
+3
-2
No files found.
src/onnx/resnet18.cpp
View file @
d16e37d2
...
...
@@ -19,8 +19,9 @@ int main(int argc, char const* argv[])
prog
.
compile
(
migraph
::
gpu
::
target
{});
migraph
::
program
::
parameter_map
m
;
auto
s
=
migraph
::
shape
{
migraph
::
shape
::
float_type
,
{
1
,
3
,
32
,
32
}};
m
[
"output"
]
=
migraph
::
gpu
::
to_gpu
(
migraph
::
generate_argument
(
prog
.
get_parameter_shape
(
"output"
)));
m
[
"0"
]
=
migraph
::
gpu
::
to_gpu
(
migraph
::
generate_argument
(
s
,
12345
));
m
[
"output"
]
=
migraph
::
gpu
::
to_gpu
(
migraph
::
generate_argument
(
prog
.
get_parameter_shape
(
"output"
)));
m
[
"0"
]
=
migraph
::
gpu
::
to_gpu
(
migraph
::
generate_argument
(
s
,
12345
));
auto
result
=
migraph
::
gpu
::
from_gpu
(
prog
.
eval
(
m
));
// // CPU target
...
...
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