opennmt/data/dataset.py
def _get_output_shapes(dataset):
    """Returns the outputs shapes of the dataset.

    Args:
      dataset: A ``tf.data.Dataset``.

    Returns:
      A nested structure of ``tf.TensorShape``
    """
    return tf.nest.map_structure(lambda spec: spec.shape, dataset.element_spec)
Returns the outputs shapes of the dataset.

    Args:
      dataset: A ``tf.data.Dataset``.

    Returns:
      A nested structure of ``tf.TensorShape``
    
Returns the outputs shapes of the dataset.
Returns the outputs shapes of the dataset .
def _get_output_shapes(dataset):
    return tf.nest.map_structure(lambda spec: spec.shape, dataset.element_spec)
def _get_output_shapes ( dataset ) : return tf . nest . map_structure ( lambda spec : spec . shape , dataset . element_spec )
Returns the outputs shapes of the dataset.
Returns the outputs shapes of the dataset .
"""Returns the outputs shapes of the dataset.

    Args:
      dataset: A ``tf.data.Dataset``.

    Returns:
      A nested structure of ``tf.TensorShape``
    """
A nested structure of ``tf.TensorShape``
A nested structure of ` ` tf . TensorShape ` `
dataset
None