Add missing parameter to OP_REQUIRES call.
authorA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 27 Mar 2018 00:02:55 +0000 (17:02 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Tue, 27 Mar 2018 00:05:34 +0000 (17:05 -0700)
PiperOrigin-RevId: 190548854

tensorflow/core/kernels/mkl_reshape_op.cc

index e12f6f4..2cfde1f 100644 (file)
@@ -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 {