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
a5d58187
Commit
a5d58187
authored
Aug 29, 2018
by
Paul
Browse files
Fix the hasing of parameter names
parent
96513f1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/onnx/verify_onnx.cpp
src/onnx/verify_onnx.cpp
+2
-2
No files found.
src/onnx/verify_onnx.cpp
View file @
a5d58187
...
@@ -22,7 +22,7 @@ migraph::argument run_cpu(F f)
...
@@ -22,7 +22,7 @@ migraph::argument run_cpu(F f)
migraph
::
program
::
parameter_map
m
;
migraph
::
program
::
parameter_map
m
;
for
(
auto
&&
x
:
p
.
get_parameter_shapes
())
for
(
auto
&&
x
:
p
.
get_parameter_shapes
())
{
{
m
[
x
.
first
]
=
migraph
::
generate_argument
(
x
.
second
);
m
[
x
.
first
]
=
migraph
::
generate_argument
(
x
.
second
,
get_hash
(
x
.
first
)
);
}
}
auto
out
=
p
.
eval
(
m
);
auto
out
=
p
.
eval
(
m
);
std
::
cout
<<
p
<<
std
::
endl
;
std
::
cout
<<
p
<<
std
::
endl
;
...
@@ -53,7 +53,7 @@ void verify_program(const std::string& name, F f, double tolerance = 100)
...
@@ -53,7 +53,7 @@ void verify_program(const std::string& name, F f, double tolerance = 100)
migraph
::
verify_args
(
name
,
x
,
y
,
tolerance
);
migraph
::
verify_args
(
name
,
x
,
y
,
tolerance
);
}
}
void
verify_instructions
(
const
migraph
::
program
&
prog
,
double
tolerance
=
10
0
)
void
verify_instructions
(
const
migraph
::
program
&
prog
,
double
tolerance
=
8
0
)
{
{
for
(
auto
&&
ins
:
prog
)
for
(
auto
&&
ins
:
prog
)
{
{
...
...
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