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

Function MakeResourceHandleToOutput

tensorflow/core/framework/resource_mgr.cc:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53Status MakeResourceHandleToOutput(OpKernelContext* context, int output_index,
54 const string& container, const string& name,
55 const TypeIndex& type_index) {
56 Tensor* handle;
57 TF_RETURN_IF_ERROR(
58 context->allocate_output(output_index, TensorShape({}), &handle));
59 handle->scalar<ResourceHandle>()() =
60 MakeResourceHandle(container, name, *context->device(), type_index);
61 return Status::OK();
62}
63
64namespace internal {
65

Callers 8

LOCKS_EXCLUDEDMethod · 0.85
LOCKS_EXCLUDEDMethod · 0.85
LOCKS_EXCLUDEDMethod · 0.85
LOCKS_EXCLUDEDMethod · 0.85
SHARED_LOCKS_REQUIREDMethod · 0.85
LOCKS_EXCLUDEDFunction · 0.85
LOCKS_EXCLUDEDMethod · 0.85
LOCKS_EXCLUDEDMethod · 0.85

Calls 4

allocate_outputMethod · 0.80
TensorShapeClass · 0.70
MakeResourceHandleFunction · 0.70
deviceMethod · 0.45

Tested by 1

LOCKS_EXCLUDEDMethod · 0.68