def testUnknownRankError(self):
    if context.executing_eagerly():
        return
    partitions = array_ops.placeholder(dtypes.int32, None)
    with self.assertRaisesRegexp((ValueError, errors.InvalidArgumentError), 'partitions must have known rank'):
        ragged_array_ops.stack_dynamic_partitions(['a', 'b', 'c'], partitions, 10)
def testUnknownRankError(self):
    if context.executing_eagerly():
        return
    partitions = array_ops.placeholder(dtypes.int32, None)
    with self.assertRaisesRegexp((ValueError, errors.InvalidArgumentError), 'partitions must have known rank'):
        ragged_array_ops.stack_dynamic_partitions(['a', 'b', 'c'], partitions, 10)