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

Method set_output

tensorflow/core/framework/op_kernel.cc:857–868  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

855}
856
857Status OpKernelContext::set_output(StringPiece name, const Tensor& tensor) {
858 int start, stop;
859 TF_RETURN_IF_ERROR(params_->op_kernel->OutputRange(name, &start, &stop));
860 if (stop != start + 1) {
861 return errors::InvalidArgument("OpKernel used list-valued output name '",
862 name,
863 "' when single-valued output was "
864 "expected");
865 }
866 set_output(start, tensor);
867 return Status::OK();
868}
869
870void OpKernelContext::set_output(int index, const Tensor& tensor) {
871 CHECK_GE(index, 0);

Callers 15

mpi_ops.ccFile · 0.45
mpi_ops.ccFile · 0.45
array_ops.ccFile · 0.45
variable_ops.ccFile · 0.45
SetOutputToSizedImageFunction · 0.45
image_ops.ccFile · 0.45
model_ops.ccFile · 0.45
stats_ops.ccFile · 0.45

Calls 15

InvalidArgumentFunction · 0.85
IsRefTypeFunction · 0.85
allocate_tensorFunction · 0.85
TensorValueClass · 0.85
OutputRangeMethod · 0.80
tensor_dataMethod · 0.80
nameMethod · 0.65
deviceFunction · 0.50
sizeMethod · 0.45
output_typeMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by 10

RFFTShapeFunction · 0.36
ComputeMethod · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
ScalarsFunction · 0.36
ComputeMethod · 0.36
TensorAsShapeShapeFnFunction · 0.36
ComputeAsyncMethod · 0.36
ScalarsFunction · 0.36