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

Method Encode

tensorflow/core/framework/tensor.cc:159–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157 // Encoder of simple type T to a string. We do a copy.
158 template <typename Destination>
159 static void Encode(TensorBuffer* in, int64 n, Destination* out) {
160 DCHECK_EQ(in->size(), sizeof(T) * n);
161 port::AssignRefCounted(StringPiece(in->base<const char>(), in->size()), in,
162 out);
163 }
164
165 // Decoder of simple type T. Copy the bytes from "in" into the
166 // tensor buffer.

Callers 5

operator==Function · 0.45
FillMethod · 0.45
EncodeVariantImplFunction · 0.45
EncodeVariantListFunction · 0.45
TESTFunction · 0.45

Calls 2

AssignRefCountedFunction · 0.85
sizeMethod · 0.45

Tested by 2

operator==Function · 0.36
TESTFunction · 0.36