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
350edea3
"script/cmake-cuda.sh" did not exist on "79e6abbda83015921a6bdf5affd6582ba0ffea7a"
Commit
350edea3
authored
Aug 20, 2019
by
Paul
Browse files
Add command to show parameters
parent
ab56a9eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
src/driver/main.cpp
src/driver/main.cpp
+14
-0
No files found.
src/driver/main.cpp
View file @
350edea3
...
@@ -119,6 +119,20 @@ struct read : command<read>
...
@@ -119,6 +119,20 @@ struct read : command<read>
}
}
};
};
struct
params
:
command
<
params
>
{
loader
l
;
void
parse
(
argument_parser
&
ap
)
{
l
.
parse
(
ap
);
}
void
run
()
{
auto
p
=
l
.
load
();
for
(
auto
&&
param
:
p
.
get_parameter_shapes
())
std
::
cout
<<
param
.
first
<<
": "
<<
param
.
second
<<
std
::
endl
;
}
};
struct
verify
:
command
<
verify
>
struct
verify
:
command
<
verify
>
{
{
loader
l
;
loader
l
;
...
...
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