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

Method with_lens

src/shape.cpp:583–592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581}
582
583shape shape::with_lens(type_t t, const std::vector<std::size_t>& l) const
584{
585 if(this->dynamic())
586 {
587 MIGRAPHX_THROW("SHAPE: with_lens() called on dynamic shape");
588 }
589 assert(l.size() == this->lens().size());
590 auto perm = find_permutation(*this);
591 return shape::from_permutation(t, l, perm);
592}
593
594shape shape::with_lens(const std::vector<std::size_t>& l) const
595{

Callers 15

TEST_CASEFunction · 0.80
as_packedFunction · 0.80
compute_padded_shapeFunction · 0.80
prefix_scan_sumFunction · 0.80
get_reduced_shapeFunction · 0.80
get_output_shapeFunction · 0.80
compile_opMethod · 0.80
compute_shapeMethod · 0.80
base_adjust_shapeMethod · 0.80

Calls 5

dynamicMethod · 0.95
typeMethod · 0.95
lensMethod · 0.80
find_permutationFunction · 0.70
sizeMethod · 0.45

Tested by 1

TEST_CASEFunction · 0.64