Commit a5d58187 authored by Paul's avatar Paul
Browse files

Fix the hasing of parameter names

parent 96513f1d
...@@ -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 = 100) void verify_instructions(const migraph::program& prog, double tolerance = 80)
{ {
for(auto&& ins : prog) for(auto&& ins : prog)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment