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

Function generate_make_tensor

src/targets/gpu/compile_hip_code_object.cpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52)__migraphx__";
53
54static std::string generate_make_tensor(std::size_t n, const shape& s)
55{
56 return interpolate_string(make_tensor_template,
57 {{"n", std::to_string(n)},
58 {"type", shape::cpp_type(s.type())},
59 {"lens", generate_index_ints(s.lens())},
60 {"strides", generate_index_ints(s.strides())}});
61}
62
63static std::string generate_args_hpp(const std::vector<shape>& inputs)
64{

Callers 1

generate_args_hppFunction · 0.85

Calls 5

interpolate_stringFunction · 0.85
generate_index_intsFunction · 0.85
lensMethod · 0.80
to_stringFunction · 0.50
typeMethod · 0.45

Tested by

no test coverage detected