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

Method RefCountIsOne

tensorflow/core/framework/tensor.cc:646–649  ·  view source on GitHub ↗

Notice that buf_ either points to a regular TensorBuffer or a SubBuffer. For the latter case, we have to make sure that the refcount is one both for the SubBuffer _and_ the underlying TensorBuffer.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

forward_inputMethod · 0.45
PrepareToUpdateVariableFunction · 0.45
ComputeMethod · 0.45
TEST_FFunction · 0.45
TF_TensorMaybeMoveFunction · 0.45

Calls 2

root_bufferMethod · 0.45
OwnsMemoryMethod · 0.45

Tested by 1

TEST_FFunction · 0.36