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

Function param_name

src/param_utils.cpp:36–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34inline namespace MIGRAPHX_INLINE_NS {
35
36std::string param_name(std::size_t i, const std::string& prefix)
37{
38 if(i < 10)
39 return prefix + std::to_string(i);
40 const std::size_t max_digits = 5;
41 if(i >= std::pow(10, max_digits))
42 MIGRAPHX_THROW("Too many parameters.");
43 std::size_t n = log10(i) + 1;
44 return prefix + ":" + std::string(max_digits - n, '0') + std::to_string(i);
45}
46
47void sort_params(std::vector<instruction_ref>& params)
48{

Callers 12

TEST_CASEFunction · 0.85
add_mlirFunction · 0.85
add_groupFunction · 0.85
create_pointwise_modulesFunction · 0.85
create_output_namesFunction · 0.85
generic_splitFunction · 0.85
insert_paramsFunction · 0.85
offload_to_mlirFunction · 0.85
fuse_input_opsFunction · 0.85
applyMethod · 0.85
applyMethod · 0.85

Calls 2

powClass · 0.85
to_stringFunction · 0.50

Tested by

no test coverage detected