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

Function generate_params

test/gpu/mlir.cpp:111–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111static migraphx::parameter_map generate_params(const migraphx::program& p)
112{
113 migraphx::parameter_map m;
114 std::size_t i = 0;
115 for(auto&& x : p.get_parameter_shapes())
116 {
117 // m[x.first] = migraphx::fill_argument(x.second, 1);
118 m[x.first] = migraphx::generate_argument(x.second, i++);
119 }
120 return m;
121}
122
123static migraphx::argument run_gpu(migraphx::program p, const migraphx::parameter_map& inputs)
124{

Callers 1

verify_mlirFunction · 0.85

Calls 2

generate_argumentFunction · 0.85
get_parameter_shapesMethod · 0.45

Tested by

no test coverage detected