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

Method set_output_ref

tensorflow/core/framework/op_kernel.cc:939–946  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

937}
938
939void OpKernelContext::set_output_ref(int index, mutex* mu,
940 Tensor* tensor_for_ref) {
941 CHECK_GE(index, 0);
942 CHECK_LT(index, outputs_.size());
943 CHECK(IsRefType(params_->op_kernel->output_type(index)));
944 record_tensor_reference(*tensor_for_ref);
945 outputs_[index] = TensorValue(mu, tensor_for_ref);
946}
947
948Status OpKernelContext::set_output_ref(StringPiece name, mutex* mu,
949 Tensor* tensor_for_ref) {

Callers 13

set_refMethod · 0.80
LOCKS_EXCLUDEDMethod · 0.80
ComputeMethod · 0.80
SHARED_LOCKS_REQUIREDMethod · 0.80
SHARED_LOCKS_REQUIREDMethod · 0.80
ComputeMethod · 0.80
ComputeMethod · 0.80
ComputeMethod · 0.80
ComputeMethod · 0.80
LookupTableOpClass · 0.80
SHARED_LOCKS_REQUIREDMethod · 0.80
ComputeMethod · 0.80

Calls 6

IsRefTypeFunction · 0.85
TensorValueClass · 0.85
InvalidArgumentFunction · 0.85
OutputRangeMethod · 0.80
sizeMethod · 0.45
output_typeMethod · 0.45

Tested by 1

ComputeMethod · 0.64