| 73 | } |
| 74 | |
| 75 | Status 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 | |
| 90 | Status SetupFlowControlInputs(OpKernelContext* ctx, bool set_output) { |
| 91 | const Tensor* flow_control; |
no test coverage detected