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

Method ForEachIndexWithStatus

tensorflow/compiler/xla/shape_util.h:656–662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654 // StatusOr<bool>(absl::Span<int64>) or compatible.
655 template <typename FnType>
656 static Status ForEachIndexWithStatus(const Shape& shape,
657 absl::Span<const int64> base,
658 absl::Span<const int64> count,
659 absl::Span<const int64> incr,
660 const FnType& visitor_function) {
661 return ForEachIndexInternal(shape, base, count, incr, visitor_function);
662 }
663
664 // Simple ergonomic wrapper around ShapeUtil::ForEachIndexWithStatus.
665 struct IndexIterationSpace {

Callers

nothing calls this directly

Calls 3

dimensions_sizeMethod · 0.80
AsInt64SliceFunction · 0.70
dimensionsMethod · 0.45

Tested by

no test coverage detected