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

Method multi

src/shape.cpp:476–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474}
475
476std::vector<std::size_t> shape::multi(std::size_t idx) const
477{
478 assert(idx < elements());
479 std::vector<std::size_t> indices(lens().size());
480 multi_copy(idx, indices.data(), indices.data() + lens().size());
481 return indices;
482}
483
484void shape::multi_copy(std::size_t idx, std::size_t* start, const std::size_t* end) const
485{

Callers 4

TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45

Calls 3

elementsFunction · 0.50
sizeMethod · 0.45
dataMethod · 0.45

Tested by 1

TEST_CASEFunction · 0.36