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

Function HandleFromInput

tensorflow/core/framework/resource_mgr.cc:319–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319Status HandleFromInput(OpKernelContext* ctx, StringPiece input,
320 ResourceHandle* handle) {
321 const Tensor* tensor;
322 TF_RETURN_IF_ERROR(ctx->input(input, &tensor));
323 *handle = tensor->flat<ResourceHandle>()(0);
324 return Status::OK();
325}
326
327Status DeleteResource(OpKernelContext* ctx, const ResourceHandle& p) {
328 TF_RETURN_IF_ERROR(internal::ValidateDevice(ctx, p));

Callers 15

ComputeMethod · 0.85
ComputeMethod · 0.85
ComputeMethod · 0.85
ComputeMethod · 0.85
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 1

inputMethod · 0.45

Tested by 2

ComputeMethod · 0.68
ComputeMethod · 0.68