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

Function AsInt64Slice

tensorflow/compiler/xla/util.h:176–181  ·  view source on GitHub ↗

xla::int64 is not the same type as tensorflow::protobuf_int64 in open-source. Wrapper function that gives an int64 array slice view of a repeated int64 protobuf field.

Source from the content-addressed store, hash-verified

174// Wrapper function that gives an int64 array slice view of a repeated int64
175// protobuf field.
176static inline absl::Span<const int64> AsInt64Slice(
177 const tensorflow::protobuf::RepeatedField<tensorflow::protobuf_int64>& v) {
178 absl::Span<const tensorflow::protobuf_int64> slice(v);
179 return absl::Span<const int64>(reinterpret_cast<const int64*>(slice.data()),
180 slice.size());
181}
182
183// TODO(b/29771030): This nop overload was added to simplify the migration of
184// Shape from a proto to a C++ class. Remove after class has been migrated.

Callers 15

CreateR2WithLayoutMethod · 0.70
PopulateInternalMethod · 0.70
ValidateShapeSizeMethod · 0.70
PermuteDimensionsMethod · 0.70
TransposeIsBitcastMethod · 0.70
ReshapeIsBitcastMethod · 0.70
AlignLayoutsMethod · 0.70
FindTranspose021Method · 0.70
TESTFunction · 0.70

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by 5

TESTFunction · 0.56
BuildFakeDataOpOnDeviceFunction · 0.40
TEST_FFunction · 0.40
DoItMethod · 0.40