quantnn/models/pytorch/common.py
def save(self, path):
        """
        Save QRNN to file.

        Arguments:
            The path in which to store the QRNN.
        """
        torch.save(
            {
                "width": self.width,
                "depth": self.depth,
                "activation": self.activation,
                "network_state": self.state_dict(),
                "optimizer_state": self.optimizer.state_dict(),
            },
            path,
        )

        Save QRNN to file.

        Arguments:
            The path in which to store the QRNN.
        
Save QRNN to file.
Arguments:
The path in which to store the QRNN.
Save QRNN to file . Arguments : The path in which to store the QRNN .
def save(self, path):
        torch.save(
            {
                "width": self.width,
                "depth": self.depth,
                "activation": self.activation,
                "network_state": self.state_dict(),
                "optimizer_state": self.optimizer.state_dict(),
            },
            path,
        )
def save ( self , path ) : torch . save ( { "width" : self . width , "depth" : self . depth , "activation" : self . activation , "network_state" : self . state_dict ( ) , "optimizer_state" : self . optimizer . state_dict ( ) , } , path , )
Save QRNN to file.
Save QRNN to file .
"""
        Save QRNN to file.

        Arguments:
            The path in which to store the QRNN.
        """
self
path