MCPcopy Create free account
hub / github.com/benoitsteiner/tensorflow-opencl / decodeTensor

Function decodeTensor

tensorflow/go/tensor.go:344–370  ·  view source on GitHub ↗

decodeTensor decodes the Tensor from the buffer to ptr using the format specified in c_api.h. Use stringDecoder for String tensors.

(r *bytes.Reader, shape []int64, typ reflect.Type, ptr reflect.Value)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

ValueMethod · 0.85

Calls 3

ReadMethod · 0.45
SetMethod · 0.45
IndexMethod · 0.45

Tested by

no test coverage detected