MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ForEachMutableSubshape

Method ForEachMutableSubshape

tensorflow/compiler/xla/shape_util.cc:905–916  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

903}
904
905/* static */ void ShapeUtil::ForEachMutableSubshape(
906 Shape* shape, const MutatingVisitorFunction& func) {
907 ShapeIndex index;
908 ForEachMutableSubshapeHelper(
909 shape,
910 [&func](Shape* subshape, const ShapeIndex& index) {
911 func(subshape, index);
912 return Status::OK();
913 },
914 &index)
915 .IgnoreError();
916}
917
918/* static */ Status ShapeUtil::ForEachSubshapeWithStatus(
919 const Shape& shape, const StatusVisitorFunction& func) {

Callers

nothing calls this directly

Calls 3

funcFunction · 0.50
IgnoreErrorMethod · 0.45

Tested by

no test coverage detected