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

Method mutable_output

tensorflow/core/framework/op_kernel.cc:962–973  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

960}
961
962Status OpKernelContext::mutable_output(StringPiece name, Tensor** tensor) {
963 int start, stop;
964 TF_RETURN_IF_ERROR(params_->op_kernel->OutputRange(name, &start, &stop));
965 if (stop != start + 1) {
966 return errors::InvalidArgument("OpKernel used list-valued output name '",
967 name,
968 "' when single-valued output was "
969 "expected");
970 }
971 *tensor = mutable_output(start);
972 return Status::OK();
973}
974
975bool OpKernelContext::ValidateInputsAreSameShape(OpKernel* op) {
976 const auto& inputs = *params_->inputs;

Callers

nothing calls this directly

Calls 2

InvalidArgumentFunction · 0.85
OutputRangeMethod · 0.80

Tested by

no test coverage detected