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

Method input_ref_mutex

tensorflow/core/framework/op_kernel.cc:383–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383Status OpKernelContext::input_ref_mutex(StringPiece name, mutex** out_mutex) {
384 int start, stop;
385 TF_RETURN_IF_ERROR(params_->op_kernel->InputRange(name, &start, &stop));
386 if (stop != start + 1) {
387 return errors::InvalidArgument("OpKernel used list-valued input name '",
388 name,
389 "' when single-valued input was expected");
390 }
391 *out_mutex = input_ref_mutex(start);
392 return Status::OK();
393}
394
395const Tensor& OpKernelContext::input(int index) {
396 CHECK_GE(index, 0);

Callers

nothing calls this directly

Calls 2

InvalidArgumentFunction · 0.85
InputRangeMethod · 0.80

Tested by

no test coverage detected