message: Validate num_outputs instead of num_inputs in TF_SetOutput function.
diff: @@ -189,8 +189,8 @@ void TF_GetInput(TF_OpKernelContext* ctx, int i, TF_Tensor** tensor,
  void TF_SetOutput(TF_OpKernelContext* ctx, int i, const TF_Tensor* tensor,
  TF_Status* status) {
  auto* cc_ctx = reinterpret_cast<::tensorflow::OpKernelContext*>(ctx);
  - if (i < 0 || i >= cc_ctx->num_inputs()) {
  - TF_SetStatus(status, TF_OUT_OF_RANGE, "input index out of range");
  + if (i < 0 || i >= cc_ctx->num_outputs()) {
  + TF_SetStatus(status, TF_OUT_OF_RANGE, "output index out of range");
  return;
  }
  ::tensorflow::Tensor cc_tensor;
  