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

Class TensorReference

tensorflow/tensorflow/core/framework/tensor_reference.h:30–71  ·  view source on GitHub ↗

An opaque class that holds a reference to an underlying TensorBuffer. Unlike Tensor, it does not have any shape or type information, so it is cheaper to construct/move, but the only thing you can really do with it is Unref it, which releases one of the references to the underlying TensorBuffer. IMPORTANT: If you do not call Unref(), you will likely leak tensor memory.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

AddMethod · 0.85
AddTensorReferenceFunction · 0.85

Calls

no outgoing calls

Tested by 1

AddTensorReferenceFunction · 0.68