opennmt/utils/misc.py
def describe_layer(layer, name=None):
    """Returns a PyTorch-style description of the layer, for information or debug."""
    with io.StringIO() as output:
        _describe_layer(output, layer, name=name)
        return output.getvalue()
Returns a PyTorch-style description of the layer, for information or debug.
Returns a PyTorch-style description of the layer, for information or debug.
Returns a PyTorch - style description of the layer for information or debug .
def describe_layer(layer, name=None):
    with io.StringIO() as output:
        _describe_layer(output, layer, name=name)
        return output.getvalue()
def describe_layer ( layer , name = None ) : with io . StringIO ( ) as output : _describe_layer ( output , layer , name = name ) return output . getvalue ( )
Returns a PyTorch-style description of the layer, for information or debug.
Returns a PyTorch - style description of the layer for information or debug .
"""Returns a PyTorch-style description of the layer, for information or debug."""
layer
name