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

Method create

src/shape_transform_descriptor.cpp:234–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234shape_transform_descriptor shape_transform_descriptor::create(const std::vector<std::size_t>& dims,
235 const std::vector<operation>& ops)
236{
237 shape_transform_descriptor result{dims};
238 if(not result.apply(ops))
239 return {};
240 result.simplify();
241 assert(compute_dims(ops, dims) == compute_dims(result.generate(), dims));
242 return result;
243}
244
245static bool is_broadcast_only(const std::vector<dimension>& src_dims,
246 const std::vector<dimension>& dst_dims)

Callers 1

mainFunction · 0.80

Calls 4

compute_dimsFunction · 0.85
simplifyMethod · 0.80
applyMethod · 0.45
generateMethod · 0.45

Tested by

no test coverage detected