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

Function fill_param_map

src/driver/perf.cpp:48–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48parameter_map fill_param_map(parameter_map& m,
49 const std::unordered_map<std::string, shape>& param_shapes,
50 const target& t,
51 bool offload)
52{
53 for(auto&& x : param_shapes)
54 {
55 argument& arg = m[x.first];
56 if(arg.empty())
57 {
58 assert(not x.second.dynamic());
59 arg = generate_argument(x.second, get_hash(x.first), random_mode::random);
60 }
61 if(not offload)
62 arg = t.copy_to(arg);
63 }
64 return m;
65}
66
67parameter_map create_param_map(const program& p, const target& t, bool offload)
68{

Callers 1

generateMethod · 0.85

Calls 5

generate_argumentFunction · 0.85
dynamicMethod · 0.80
get_hashFunction · 0.70
emptyMethod · 0.45
copy_toMethod · 0.45

Tested by

no test coverage detected