opacus/layers/dp_lstm.py
def validate_parameters(self):
        r"""
        Validates the DPLSTM configuration and raises a ``NotImplementedError`` if the number of
        layers is more than 1, the DPLSTM is bidirectional, uses dropout at the output
        or, it does not have a bias term.

        Raises:
            NotImplementedError
                If the number of layers is more than 1, the DPLSTM is bidirectional,
                uses dropout at the output, or it does not have a bias term.
        """
        if self.num_layers > 1 or not self.bias or self.dropout or self.bidirectional:
            raise NotImplementedError(
                "DPLSTM Layer initialized with unsupported non-default flag. "
                "Only supported flags are bias=True, bidirectional=False "
                "num_layers=1, dropout=False, and initial state set to zero tensors"
            )
r"""
        Validates the DPLSTM configuration and raises a ``NotImplementedError`` if the number of
        layers is more than 1, the DPLSTM is bidirectional, uses dropout at the output
        or, it does not have a bias term.

        Raises:
            NotImplementedError
                If the number of layers is more than 1, the DPLSTM is bidirectional,
                uses dropout at the output, or it does not have a bias term.
        
r"""
Validates the DPLSTM configuration and raises a ``NotImplementedError`` if the number of
layers is more than 1, the DPLSTM is bidirectional, uses dropout at the output
or, it does not have a bias term.

NotImplementedError
If the number of layers is more than 1, the DPLSTM is bidirectional,
uses dropout at the output, or it does not have a bias term.
r " " " Validates the DPLSTM configuration and raises a ` ` NotImplementedError ` ` if the number of layers is more than 1 the DPLSTM is bidirectional uses dropout at the output or it does not have a bias term . NotImplementedError If the number of layers is more than 1 the DPLSTM is bidirectional uses dropout at the output or it does not have a bias term .
def validate_parameters(self):
        if self.num_layers > 1 or not self.bias or self.dropout or self.bidirectional:
            raise NotImplementedError(
                "DPLSTM Layer initialized with unsupported non-default flag. "
                "Only supported flags are bias=True, bidirectional=False "
                "num_layers=1, dropout=False, and initial state set to zero tensors"
            )
def validate_parameters ( self ) : if self . num_layers > 1 or not self . bias or self . dropout or self . bidirectional : raise NotImplementedError ( "DPLSTM Layer initialized with unsupported non-default flag. " "Only supported flags are bias=True, bidirectional=False " "num_layers=1, dropout=False, and initial state set to zero tensors" )
r"""
Validates the DPLSTM configuration and raises a ``NotImplementedError`` if the number of
layers is more than 1, the DPLSTM is bidirectional, uses dropout at the output
or, it does not have a bias term.
r " " " Validates the DPLSTM configuration and raises a ` ` NotImplementedError ` ` if the number of layers is more than 1 the DPLSTM is bidirectional uses dropout at the output or it does not have a bias term .
r"""
        Validates the DPLSTM configuration and raises a ``NotImplementedError`` if the number of
        layers is more than 1, the DPLSTM is bidirectional, uses dropout at the output
        or, it does not have a bias term.

        Raises:
            NotImplementedError
                If the number of layers is more than 1, the DPLSTM is bidirectional,
                uses dropout at the output, or it does not have a bias term.
        """
self