deepy/networks/network.py
def save_params(self, path, new_thread=False):
        """
        Save parameters to file.
        """
        save_logger.info(path)
        param_variables = self.all_parameters
        params = [p.get_value().copy() for p in param_variables]
        if new_thread:
            thread = Thread(target=save_network_params, args=(params, path))
            thread.start()
        else:
            save_network_params(params, path)
        self.train_logger.save(path)
def save_params(self, path, new_thread=False):
        """
        Save parameters to file.
        """
        save_logger.info(path)
        param_variables = self.all_parameters
        params = [p.get_value().copy() for p in param_variables]
        if new_thread:
            thread = Thread(target=save_network_params, args=(params, path))
            thread.start()
        else:
            save_network_params(params, path)
        self.train_logger.save(path)
def save_params ( self , path , new_thread = False ) : save_logger . info ( path ) param_variables = self . all_parameters params = [ p . get_value ( ) . copy ( ) for p in param_variables ] if new_thread : thread = Thread ( target = save_network_params , args = ( params , path ) ) thread . start ( ) else : save_network_params ( params , path ) self . train_logger . save ( path )
Save parameters to file.
Save parameters to file .