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
256326cc
Commit
256326cc
authored
Aug 14, 2018
by
wsttiger
Browse files
Formatting
parent
0ce9810a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/onnx/resnet18.cpp
src/onnx/resnet18.cpp
+1
-2
No files found.
src/onnx/resnet18.cpp
View file @
256326cc
...
@@ -89,7 +89,7 @@ int main(int argc, char const* argv[])
...
@@ -89,7 +89,7 @@ int main(int argc, char const* argv[])
// auto input3 = migraph::generate_argument(s, 12345);
// auto input3 = migraph::generate_argument(s, 12345);
// auto result = prog.eval({{"0", input3}});
// auto result = prog.eval({{"0", input3}});
prog
.
compile
(
migraph
::
cpu
::
cpu_target
{});
prog
.
compile
(
migraph
::
cpu
::
cpu_target
{});
auto
s
=
migraph
::
shape
{
migraph
::
shape
::
float_type
,
{
1
,
3
,
32
,
32
}};
auto
s
=
migraph
::
shape
{
migraph
::
shape
::
float_type
,
{
1
,
3
,
32
,
32
}};
auto
labels
=
imageset
.
first
;
auto
labels
=
imageset
.
first
;
auto
input
=
imageset
.
second
;
auto
input
=
imageset
.
second
;
auto
ptr
=
input
.
data
();
auto
ptr
=
input
.
data
();
...
@@ -105,5 +105,4 @@ int main(int argc, char const* argv[])
...
@@ -105,5 +105,4 @@ int main(int argc, char const* argv[])
std
::
cout
<<
x
<<
" "
;
std
::
cout
<<
x
<<
" "
;
std
::
cout
<<
std
::
endl
;
std
::
cout
<<
std
::
endl
;
}
}
}
}
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