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

Function create_param_map

src/driver/perf.cpp:67–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67parameter_map create_param_map(const program& p, const target& t, bool offload)
68{
69 parameter_map m;
70 for(auto&& x : p.get_parameter_shapes())
71 {
72 auto arg = generate_argument(x.second, get_hash(x.first), random_mode::random);
73 if(offload)
74 m[x.first] = arg;
75 else
76 m[x.first] = t.copy_to(arg);
77 }
78 return m;
79}
80
81parameter_map create_param_map(const program& p, bool gpu)
82{

Callers 1

verify_instructionsFunction · 0.85

Calls 5

generate_argumentFunction · 0.85
to_gpuFunction · 0.85
get_hashFunction · 0.70
get_parameter_shapesMethod · 0.45
copy_toMethod · 0.45

Tested by

no test coverage detected