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

Function AsInt64Slice

tensorflow/stream_executor/dnn.h:95–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93// T should be a protobuf RepeatedField.
94template <typename T>
95inline absl::Span<const int64> AsInt64Slice(const T& repeated_field) {
96 using data_ty =
97 typename std::remove_reference<decltype(*repeated_field.data())>::type;
98 static_assert(std::is_integral<data_ty>::value &&
99 std::is_signed<data_ty>::value && sizeof(data_ty) == 8,
100 "repeated_field.data() must return a pointer to a signed "
101 "64-bit integer type.");
102 return absl::Span<const int64>(
103 reinterpret_cast<const int64*>(repeated_field.data()),
104 repeated_field.size());
105}
106template <typename T>
107inline absl::Span<int64> AsInt64Slice(T* repeated_field) {
108 using data_ty =

Callers 5

spatial_sizeMethod · 0.70
input_filter_dimsMethod · 0.70
stridesMethod · 0.70
dilationsMethod · 0.70
paddingMethod · 0.70

Calls 3

mutable_dataMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected