MCPcopy Create free account
hub / github.com/alibaba/nann / WriteContentsTo

Method WriteContentsTo

tensorflow/tensorflow/go/tensor.go:196–201  ·  view source on GitHub ↗

WriteContentsTo writes the serialized contents of t to w. Returns the number of bytes written. See ReadTensor for reconstructing a Tensor from the serialized form. WARNING: WriteContentsTo is not comprehensive and will fail if t.DataType() is non-numeric (e.g., String). See https://github.com/tens

(w io.Writer)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 4

DataTypeMethod · 0.95
isTensorSerializableFunction · 0.85
tensorDataFunction · 0.85
CopyMethod · 0.45

Tested by 4

TestTensorSerializationFunction · 0.76
TestReadTensorReadAllFunction · 0.76