scripts/optimizers.py
def cudafy(self):
        """
        Moves all attributes represented by torch tensors to CUDA.
        """
        for attr, value in self.get_state().items():
            try:
                setattr(self, attr, value.cuda())
            except AttributeError:
                pass

        Moves all attributes represented by torch tensors to CUDA.
        
Moves all attributes represented by torch tensors to CUDA.
Moves all attributes represented by torch tensors to CUDA .
def cudafy(self):
        for attr, value in self.get_state().items():
            try:
                setattr(self, attr, value.cuda())
            except AttributeError:
                pass
def cudafy ( self ) : for attr , value in self . get_state ( ) . items ( ) : try : setattr ( self , attr , value . cuda ( ) ) except AttributeError : pass
Moves all attributes represented by torch tensors to CUDA.
Moves all attributes represented by torch tensors to CUDA .
"""
        Moves all attributes represented by torch tensors to CUDA.
        """
self