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
076556e9
Commit
076556e9
authored
Sep 20, 2023
by
Umang Yadav
Browse files
change threshold to rms_tol
parent
f5329965
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
46 deletions
+46
-46
docs/driver.rst
docs/driver.rst
+2
-2
examples/migraphx/migraphx_driver/README.md
examples/migraphx/migraphx_driver/README.md
+39
-39
src/driver/main.cpp
src/driver/main.cpp
+5
-5
No files found.
docs/driver.rst
View file @
076556e9
...
...
@@ -50,9 +50,9 @@ Runs reference and CPU or GPU implementations and checks outputs for consistency
.. include:: ./driver/compile.rst
.. option:: --
thresh
ol
d
[double]
.. option:: --
rms_t
ol [double]
T
hreshold
for RMS error (Default: 0.001)
T
olerance
for RMS error (Default: 0.001)
.. option:: -i, --per-instruction
...
...
examples/migraphx/migraphx_driver/README.md
View file @
076556e9
...
...
@@ -22,14 +22,14 @@ See below for a comprehensive list of commands and option arguments, as well as
### Options
| Option | Description |
| ---------------------------------------- | --------------------------------------------------------- |
| ---------------------------------------- | ---------------------------------------------------------
-------------------------------------
|
| --help
\|
-h | Show help |
| --model
<resnet50
\|
inceptionv3
\|
alexnet
>
| Loads one of the three default models |
| --onnx | Load file as onnx graph |
| --tf | Load file as a tensorflow graph |
| --migraphx | Load file as a migraphx graph |
| --migraphx-json | Load file as a migraphx JSON graph |
| --batch | For a static model, set batch size. For a dynamic batch model, sets the batch size at runtime.|
| --batch | For a static model, set batch size. For a dynamic batch model, sets the batch size at runtime.
|
| --nhwc | Treat tensorflow format as nhwc |
| --nchw | Treat tensorflow format as nchw |
| --skip-unknown-operators | Skip unknown operators when parsing and continue to parse |
...
...
@@ -55,7 +55,7 @@ See below for a comprehensive list of commands and option arguments, as well as
| --exhaustive-tune | Enable exhaustive search to find fastest kernel |
| --fp16 | Quantize for fp16 |
| --int8 | Quantize for int8 |
| --
threshold
|
threshold for errors
|
| --
rms_tol
|
Tolerance for the RMS error
|
| --per-instruction
\|
-i | Verify each instruction |
| --reduce
\|
-r | Reduce program and verify |
| --iterations
\|
-n | Number of iterations to run for perf report |
...
...
src/driver/main.cpp
View file @
076556e9
...
...
@@ -536,13 +536,13 @@ struct params : command<params>
struct
verify
:
command
<
verify
>
{
compiler
c
;
double
threshold
=
0.001
;
double
rms_tol
=
0.001
;
bool
per_instruction
=
false
;
bool
reduce
=
false
;
void
parse
(
argument_parser
&
ap
)
{
c
.
parse
(
ap
);
ap
(
thresh
ol
d
,
{
"--
thresh
ol
d
"
},
ap
.
help
(
"
threshold
for the RMS error"
));
ap
(
rms_t
ol
,
{
"--
rms_t
ol"
},
ap
.
help
(
"
Tolerance
for the RMS error"
));
ap
(
per_instruction
,
{
"-i"
,
"--per-instruction"
},
ap
.
help
(
"Verify each instruction"
),
...
...
@@ -567,15 +567,15 @@ struct verify : command<verify>
if
(
per_instruction
)
{
verify_instructions
(
p
,
t
,
c
.
co
,
quantize
,
thresh
ol
d
);
verify_instructions
(
p
,
t
,
c
.
co
,
quantize
,
rms_t
ol
);
}
else
if
(
reduce
)
{
verify_reduced_program
(
p
,
t
,
c
.
co
,
quantize
,
m
,
thresh
ol
d
);
verify_reduced_program
(
p
,
t
,
c
.
co
,
quantize
,
m
,
rms_t
ol
);
}
else
{
verify_program
(
c
.
l
.
file
,
p
,
t
,
c
.
co
,
quantize
,
m
,
thresh
ol
d
);
verify_program
(
c
.
l
.
file
,
p
,
t
,
c
.
co
,
quantize
,
m
,
rms_t
ol
);
}
}
};
...
...
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