Ensure that the rank of the input to tf.Unique is 1 as shape inference time instead...
authorBenoit Steiner <bsteiner@google.com>
Fri, 9 Mar 2018 17:48:05 +0000 (09:48 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 9 Mar 2018 17:52:13 +0000 (09:52 -0800)
commit41a12df5de7d767a1a872348f3ba630350fcc78e
treea302b523b560ba9e26fd653d15c51e67bb900785
parent96a7b1443f6b652c04957ac8c53d6597be434697
Ensure that the rank of the input to tf.Unique is 1 as shape inference time instead of letting the kernel catch invalid inputs.

PiperOrigin-RevId: 188496351
tensorflow/core/ops/array_ops.cc
tensorflow/core/ops/array_ops_test.cc