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

Function get_last_subdimension

src/shape_transform_descriptor.cpp:799–807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

797 return result;
798}
799static dimension::sub* get_last_subdimension(std::vector<dimension>& dims)
800{
801 if(dims.empty())
802 return {};
803 auto& d = dims.back();
804 if(d.subdimensions.empty())
805 return nullptr;
806 return &d.subdimensions.back();
807}
808
809bool shape_transform_descriptor::apply(const std::vector<operation>& ops)
810{

Callers 1

apply_reshape_implMethod · 0.85

Calls 2

backMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected