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
ba934fc2
Commit
ba934fc2
authored
Aug 23, 2018
by
wsttiger
Browse files
Formatting
parent
6ae81129
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/onnx/cifar10.cpp
src/onnx/cifar10.cpp
+2
-2
No files found.
src/onnx/cifar10.cpp
View file @
ba934fc2
...
@@ -54,7 +54,7 @@ std::vector<float> softmax(std::vector<float> p)
...
@@ -54,7 +54,7 @@ std::vector<float> softmax(std::vector<float> p)
int
main
(
int
argc
,
char
const
*
argv
[])
int
main
(
int
argc
,
char
const
*
argv
[])
{
{
if
(
argc
<
4
)
if
(
argc
<
4
)
{
{
throw
std
::
runtime_error
(
"Usage: cifar10 [gpu | cpu] <onnx file> <cifar10 data file>"
);
throw
std
::
runtime_error
(
"Usage: cifar10 [gpu | cpu] <onnx file> <cifar10 data file>"
);
}
}
...
@@ -65,7 +65,7 @@ int main(int argc, char const* argv[])
...
@@ -65,7 +65,7 @@ int main(int argc, char const* argv[])
std
::
cout
<<
prog
<<
std
::
endl
;
std
::
cout
<<
prog
<<
std
::
endl
;
auto
imageset
=
read_cifar10_images
(
datafile
);
auto
imageset
=
read_cifar10_images
(
datafile
);
if
(
gpu_cpu
==
"gpu"
)
if
(
gpu_cpu
==
"gpu"
)
{
{
// GPU target
// GPU target
prog
.
compile
(
migraph
::
gpu
::
target
{});
prog
.
compile
(
migraph
::
gpu
::
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