mirror of
https://github.com/facebookresearch/deit.git
synced 2025-06-03 14:52:20 +08:00
[Fix bug] Fix type
This commit is contained in:
parent
895eaf3975
commit
60a481f4ce
@ -5,7 +5,7 @@ import numpy as np
|
|||||||
|
|
||||||
ALL_PRUNERS = ['lamp', 'glob', 'unif', 'unifplus', 'erk', 'custom']
|
ALL_PRUNERS = ['lamp', 'glob', 'unif', 'unifplus', 'erk', 'custom']
|
||||||
def check_valid_pruner(name):
|
def check_valid_pruner(name):
|
||||||
return check_valid_pruner in ALL_PRUNERS
|
return name in ALL_PRUNERS
|
||||||
|
|
||||||
def weight_pruner_loader(pruner_string):
|
def weight_pruner_loader(pruner_string):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user