Fix DepthToSpace and SpaceToDepth to silently return instead of failing when the...
authorA. Unique TensorFlower <gardener@tensorflow.org>
Sat, 10 Mar 2018 06:43:51 +0000 (22:43 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Sat, 10 Mar 2018 06:47:25 +0000 (22:47 -0800)
commit3b0a27549dd2f1a32526cb77ec7ff407d0fc315f
tree41b33ce53a9358041c924d27f55fd814b90ef006
parent40c96d70bd71d483324e7328958f61f723986dcb
Fix DepthToSpace and SpaceToDepth to silently return instead of failing when the input tensor is empty.

PiperOrigin-RevId: 188580972
tensorflow/core/kernels/depthtospace_op_gpu.cu.cc
tensorflow/core/kernels/spacetodepth_op_gpu.cu.cc
tensorflow/python/kernel_tests/depthtospace_op_test.py
tensorflow/python/kernel_tests/spacetodepth_op_test.py