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

Function needs_flatten

src/targets/gpu/code_object_op.cpp:50–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50static bool needs_flatten(const std::vector<argument>& args)
51{
52 return std::any_of(args.begin(), args.end(), [&](const argument& arg) {
53 return arg.get_shape().type() == shape::tuple_type;
54 });
55}
56
57template <class F>
58static void visit_flatten_args(const std::vector<argument>& args, F f)

Callers 1

visit_flatten_argsFunction · 0.85

Calls 5

any_ofFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
typeMethod · 0.45
get_shapeMethod · 0.45

Tested by

no test coverage detected