opennmt/models/model.py
def map_v1_weights(self, weights):
        """Maps current weights to V1 weights.

        Args:
          weights: A nested dictionary following the scope names used in V1. The
            leaves are tuples with the variable value and optionally the optimizer
            slots.

        Returns:
          A list of tuples associating variables and their V1 equivalent.
        """
        raise NotImplementedError("This model can not restore V1 checkpoints")
Maps current weights to V1 weights.

        Args:
          weights: A nested dictionary following the scope names used in V1. The
            leaves are tuples with the variable value and optionally the optimizer
            slots.

        Returns:
          A list of tuples associating variables and their V1 equivalent.
        
Maps current weights to V1 weights.
Maps current weights to V1 weights .
def map_v1_weights(self, weights):
        raise NotImplementedError("This model can not restore V1 checkpoints")
def map_v1_weights ( self , weights ) : raise NotImplementedError ( "This model can not restore V1 checkpoints" )
Maps current weights to V1 weights.
Maps current weights to V1 weights .
"""Maps current weights to V1 weights.

        Args:
          weights: A nested dictionary following the scope names used in V1. The
            leaves are tuples with the variable value and optionally the optimizer
            slots.

        Returns:
          A list of tuples associating variables and their V1 equivalent.
        """
A list of tuples associating variables and their V1 equivalent.
A list of tuples associating variables and their V1 equivalent .
self
weights
A nested dictionary following the scope names used in V1. The
leaves are tuples with the variable value and optionally the optimizer
slots.
A nested dictionary following the scope names used in V1 . The leaves are tuples with the variable value and optionally the optimizer slots .