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

Function StridedCopy

tensorflow/compiler/xla/util.h:229–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227// destination one is dest_base.
228template <typename D, typename S>
229void StridedCopy(absl::Span<D> dest, int64 dest_base, int64 dest_stride,
230 absl::Span<const S> src, int64 src_base, int64 src_stride,
231 int64 count) {
232 for (; count > 0; --count, dest_base += dest_stride, src_base += src_stride) {
233 dest[dest_base] = static_cast<D>(src[src_base]);
234 }
235}
236
237// Adds some context information to the error message in a
238// Status. This is useful as Statuses are

Callers 1

CopySliceFromInternalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected