tf.compat.dimension_at_index