[Fix bug] Fix type

This commit is contained in:
brian1009 2023-02-26 08:58:24 +08:00
parent 895eaf3975
commit 60a481f4ce

View File

@ -5,7 +5,7 @@ import numpy as np
ALL_PRUNERS = ['lamp', 'glob', 'unif', 'unifplus', 'erk', 'custom']
def check_valid_pruner(name):
return check_valid_pruner in ALL_PRUNERS
return name in ALL_PRUNERS
def weight_pruner_loader(pruner_string):
"""