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

Function GetTensorArray

tensorflow/core/kernels/tensor_array_ops.cc:75–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75Status GetTensorArray(OpKernelContext* ctx, TensorArray** tensor_array) {
76 string container;
77 string ta_handle;
78 if (ctx->input_dtype(0) != DT_RESOURCE) {
79 TF_RETURN_IF_ERROR(GetHandle(ctx, &container, &ta_handle));
80 ResourceMgr* rm = ctx->resource_manager();
81 if (rm == nullptr) return errors::Internal("No resource manager.");
82 TF_RETURN_IF_ERROR(
83 ctx->step_container()->Lookup(rm, container + ta_handle, tensor_array));
84 return Status::OK();
85 } else {
86 return LookupResource(ctx, HandleFromInput(ctx, 0), tensor_array);
87 }
88}
89
90Status SetupFlowControlInputs(OpKernelContext* ctx, bool set_output) {
91 const Tensor* flow_control;

Callers 8

ComputeMethod · 0.85
ComputeMethod · 0.85
ComputeMethod · 0.85
ComputeMethod · 0.85
ComputeMethod · 0.85
ComputeMethod · 0.85
ComputeMethod · 0.85
ComputeMethod · 0.85

Calls 8

GetHandleFunction · 0.85
InternalFunction · 0.85
LookupResourceFunction · 0.85
HandleFromInputFunction · 0.85
step_containerMethod · 0.80
input_dtypeMethod · 0.45
resource_managerMethod · 0.45
LookupMethod · 0.45

Tested by

no test coverage detected