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

Function Fill

tensorflow/core/util/saved_tensor_slice_util.h:160–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160inline void Fill(const qint32* data, size_t n, TensorProto* t) {
161 const int32* p = reinterpret_cast<const int32*>(data);
162 typename protobuf::RepeatedField<int32> copy(p, p + n);
163 t->mutable_int_val()->Swap(&copy);
164}
165
166// Custom implementation for Eigen::half.
167

Callers 3

SaveDataMethod · 0.70
TESTFunction · 0.70
SaveDataMethod · 0.70

Calls 3

SwapMethod · 0.45
ResizeMethod · 0.45
SetMethod · 0.45

Tested by 1

TESTFunction · 0.56