def METHOD_NAME(self, load_to_cpu=False):
    pretrained_dict = torch.load(
        self.model_path, map_location=torch.device('cpu'))
    if 'state_dict' in pretrained_dict.keys():
        pretrained_dict = self.remove_prefix(pretrained_dict['state_dict'],
                                             'module.')
    else:
        pretrained_dict = self.remove_prefix(pretrained_dict, 'module.')
    self.check_keys(pretrained_dict)
    self.net.load_state_dict(pretrained_dict, strict=False)
    self.net.eval()