message: Test sequence categorical column with a zero dynamic sequence length.
diff: @@ -29,6 +29,7 @@ from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import sparse_tensor
  +from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.platform import test
  @@ -792,6 +793,33 @@ class SequenceCategoricalColumnWithVocabularyFileTest(
  _assert_sparse_tensor_value(
  self, expected, id_weight_pair.id_tensor.eval(session=sess))
  + def test_get_sparse_tensors_dynamic_zero_length(self):
  + """Tests _get_sparse_tensors with a dynamic sequence length."""
  + inputs = sparse_tensor.SparseTensorValue(
  + indices=np.zeros((0, 2)), values=[], dense_shape=(2, 0))
  + expected = sparse_tensor.SparseTensorValue(
  + indices=np.zeros((0, 3)),
  + values=np.array((), dtype=np.int64),
  + dense_shape=(2, 0, 1))
  + column = sfc.sequence_categorical_column_with_vocabulary_file(
  + key='aaa',
  + vocabulary_file=self._wire_vocabulary_file_name,
  + vocabulary_size=self._wire_vocabulary_size)
  + input_placeholder_shape = list(inputs.dense_shape)
  + # Make second dimension (sequence length) dynamic.
  + input_placeholder_shape[1] = None
  + input_placeholder = array_ops.sparse_placeholder(
  + dtypes.string, shape=input_placeholder_shape)
  + id_weight_pair = column._get_sparse_tensors(
  + _LazyBuilder({'aaa': input_placeholder}))
  +
  + self.assertIsNone(id_weight_pair.weight_tensor)
  + with monitored_session.MonitoredSession() as sess:
  + result = id_weight_pair.id_tensor.eval(
  + session=sess, feed_dict={input_placeholder: inputs})
  + _assert_sparse_tensor_value(
  + self, expected, result)
  +
  class SequenceCategoricalColumnWithVocabularyListTest(
  test.TestCase, parameterized.TestCase):
  