| 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_; |
nothing calls this directly
no test coverage detected