message: Forward the status from LookupResource to GetInputTensorFromVariable rather than returning a generic error status
diff: @@ -78,7 +78,7 @@ Status GetInputTensorFromVariable(OpKernelContext* ctx, int input,
  bool lock_held, bool sparse, Tensor* out) {
  if (ctx->input_dtype(input) == DT_RESOURCE) {
  Var* var;
  - if (LookupResource(ctx, HandleFromInput(ctx, input), &var).ok()) {
  + TF_RETURN_IF_ERROR(LookupResource(ctx, HandleFromInput(ctx, input), &var));
  core::ScopedUnref unref_var(var);
  if (lock_held) {
  TF_RETURN_IF_ERROR(
  @@ -93,9 +93,6 @@ Status GetInputTensorFromVariable(OpKernelContext* ctx, int input,
  *out = *var->tensor();
  }
  return Status::OK();
  - } else {
  - return errors::Internal("Invalid variable reference.");
  - }
  }
  *out = ctx->mutable_input(input, lock_held);
  return Status::OK();
  