(cls, path)
return model
Load the model stored in the passed `path`.
Load the model stored in the passed `path`.
Load the model stored in the passed path .
def load(cls, path):
        """Load the model stored in the passed `path`."""
        device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
        model = torch.load(path)
        model.set_device(device)
        return model
def load ( cls , path ) : device = torch . device ( 'cuda:0' if torch . cuda . is_available ( ) else 'cpu' ) model = torch . load ( path ) model . set_device ( device ) return model