Fixed sequence_mask behavior on unknown shape.
authorA. Unique TensorFlower <gardener@tensorflow.org>
Mon, 5 Feb 2018 09:03:32 +0000 (01:03 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Mon, 5 Feb 2018 09:06:47 +0000 (01:06 -0800)
commitab06a9c865abe58b882ea76a3bf008799c4c0ea4
tree902784631aaa01ba757b15f29a3817a197b45509
parent3cf771cc92402b1b52ea3d1f4b29046e4a7927b2
Fixed sequence_mask behavior on unknown shape.

`sequence_mask` crashed when fed with a tensor of unknown rank.
Added a test for that, and expanded a bit existing tests.

Also fixed pre-existing lint errors.

PiperOrigin-RevId: 184493239
tensorflow/python/kernel_tests/array_ops_test.py
tensorflow/python/ops/array_ops.py