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

Method Compute

tensorflow/core/kernels/queue_ops.cc:85–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 }
84
85 void Compute(OpKernelContext* context) override {
86 const ResourceHandle& ref = context->input(0).flat<ResourceHandle>()(0);
87 handle_.AccessTensor(context)->flat<tstring>()(0) = ref.container();
88 handle_.AccessTensor(context)->flat<tstring>()(1) = ref.name();
89 context->set_output_ref(0, &mu_, handle_.AccessTensor(context));
90 }
91
92 private:
93 mutex mu_;

Callers

nothing calls this directly

Calls 5

AccessTensorMethod · 0.80
set_output_refMethod · 0.80
nameMethod · 0.65
inputMethod · 0.45
containerMethod · 0.45

Tested by

no test coverage detected