MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / run_ref

Function run_ref

src/driver/verify.cpp:95–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95static std::vector<argument> run_ref(program p,
96 const compile_options& options,
97 const verify_options& vo,
98 const parameter_map& inputs)
99{
100 if(vo.ref_use_double)
101 {
102 run_passes(
103 p, {fp_to_double{}, simplify_qdq{.remove_qdq_only = true}, dead_code_elimination{}});
104 }
105 p.compile(migraphx::make_target("ref"), options);
106 auto out = p.eval(inputs);
107 std::cout << p << std::endl;
108 return out;
109}
110
111static std::vector<argument> run_target(program p,
112 const target& t,

Callers 1

verify_programFunction · 0.70

Calls 4

run_passesFunction · 0.85
make_targetFunction · 0.85
compileMethod · 0.45
evalMethod · 0.45

Tested by

no test coverage detected