From: A. Unique TensorFlower Date: Tue, 27 Mar 2018 00:02:55 +0000 (-0700) Subject: Add missing parameter to OP_REQUIRES call. X-Git-Tag: tflite-v0.1.7~93^2~1^2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eda7aa3f7e763734f5f3550bed8b044a384b2ce8;p=platform%2Fupstream%2Ftensorflow.git Add missing parameter to OP_REQUIRES call. PiperOrigin-RevId: 190548854 --- diff --git a/tensorflow/core/kernels/mkl_reshape_op.cc b/tensorflow/core/kernels/mkl_reshape_op.cc index e12f6f4..2cfde1f 100644 --- a/tensorflow/core/kernels/mkl_reshape_op.cc +++ b/tensorflow/core/kernels/mkl_reshape_op.cc @@ -266,8 +266,9 @@ class MklReshapeOp : public OpKernel { &net)) { stream(stream::kind::eager).submit(net).wait(); } else { - OP_REQUIRES(context, - output_tensor->CopyFrom(input_tensor, shape_to)); + OP_REQUIRES( + context, output_tensor->CopyFrom(input_tensor, shape_to), + errors::InvalidArgument("invalid input tensor shape")); } return; } else {