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

Method to_dynamic

src/shape.cpp:610–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

608}
609
610shape shape::to_dynamic() const
611{
612 if(not sub_shapes().empty())
613 {
614 std::vector<shape> subs;
615 std::transform(sub_shapes().cbegin(),
616 sub_shapes().cend(),
617 std::back_inserter(subs),
618 [](auto s) { return s.to_dynamic(); });
619 return shape(subs);
620 }
621 if(this->dynamic())
622 {
623 return *this;
624 }
625 return {type(), lens(), lens(), {}};
626}
627
628shape shape::to_static(std::size_t x) const
629{

Callers 15

TEST_CASEFunction · 0.80
parseMethod · 0.80
compute_shapeMethod · 0.80
dynamic_compute_shapeMethod · 0.80
compute_shapeMethod · 0.80
compute_shapeMethod · 0.80
compute_shapeMethod · 0.80
compute_shapeMethod · 0.80
compute_shapeMethod · 0.80
compute_shapeMethod · 0.80
compute_shapeMethod · 0.80

Calls 5

dynamicMethod · 0.95
typeFunction · 0.85
transformFunction · 0.50
shapeFunction · 0.50
emptyMethod · 0.45

Tested by 1

TEST_CASEFunction · 0.64