diff options
author | Suharsh Sivakumar <suharshs@google.com> | 2017-01-26 18:06:39 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-01-26 18:25:53 -0800 |
commit | 42318e0e71123b9e776f85fb2c397b3cbda3d596 (patch) | |
tree | e6373f18df75be08ca4bb48f508a81c4b85feb32 /tensorflow | |
parent | cb9f7c72abfe70b0ea1d088af1b15a2a9305a8b5 (diff) |
Minor fixes to SpaceToDepth and DepthToSpace error strings.
Change: 145747120
Diffstat (limited to 'tensorflow')
-rw-r--r-- | tensorflow/core/kernels/depthtospace_op.cc | 4 | ||||
-rw-r--r-- | tensorflow/core/kernels/spacetodepth_op.cc | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/tensorflow/core/kernels/depthtospace_op.cc b/tensorflow/core/kernels/depthtospace_op.cc index c8110658d3..c2a132b5fd 100644 --- a/tensorflow/core/kernels/depthtospace_op.cc +++ b/tensorflow/core/kernels/depthtospace_op.cc @@ -59,7 +59,7 @@ class DepthToSpaceOp : public OpKernel { static const int kRequiredDims = 4; OP_REQUIRES(context, kRequiredDims == dims, errors::InvalidArgument("Input rank should be: ", kRequiredDims, - "instead of: ", dims)); + " instead of: ", dims)); const int batch_size = input.dim_size(0); const int input_height = input.dim_size(1); @@ -72,7 +72,7 @@ class DepthToSpaceOp : public OpKernel { OP_REQUIRES( context, input_depth % block_size_sq == 0, errors::InvalidArgument("Input depth dimension ", input_depth, - "should be divisible by: ", block_size_sq)); + " should be divisible by: ", block_size_sq)); const int output_depth = input_depth / block_size_sq; const int output_width = input_width * block_size_; diff --git a/tensorflow/core/kernels/spacetodepth_op.cc b/tensorflow/core/kernels/spacetodepth_op.cc index d6b8703cc5..fc6351c7c7 100644 --- a/tensorflow/core/kernels/spacetodepth_op.cc +++ b/tensorflow/core/kernels/spacetodepth_op.cc @@ -59,7 +59,7 @@ class SpaceToDepthOp : public OpKernel { static const int kRequiredDims = 4; OP_REQUIRES(context, kRequiredDims == dims, errors::InvalidArgument("Input rank should be: ", kRequiredDims, - "instead of: ", dims)); + " instead of: ", dims)); const int batch_size = input.dim_size(0); const int height = input.dim_size(1); @@ -67,11 +67,11 @@ class SpaceToDepthOp : public OpKernel { const int input_depth = input.dim_size(3); // Both width and height must be divisible by block_size. - OP_REQUIRES( - context, (width % block_size_) == 0 && (height % block_size_) == 0, - errors::InvalidArgument("Image width ", width, " and height ", height, - "should be divisible by block_size: ", - block_size_)); + OP_REQUIRES(context, + (width % block_size_) == 0 && (height % block_size_) == 0, + errors::InvalidArgument( + "Image width ", width, " and height ", height, + " should be divisible by block_size: ", block_size_)); const int block_size_sq = block_size_ * block_size_; |