layer count fix
This commit is contained in:
parent
d8ab58892d
commit
bfc07073e3
|
@ -821,7 +821,7 @@ def get_layer_count(model, directory=""):
|
|||
if model_config is None:
|
||||
return None
|
||||
try:
|
||||
layers = model_config.num_layers
|
||||
layers = model_config.num_layers if hasattr(model_config, "num_layers") else model_config.n_layer
|
||||
except:
|
||||
layers = None
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue