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:
|
if model_config is None:
|
||||||
return None
|
return None
|
||||||
try:
|
try:
|
||||||
layers = model_config.num_layers
|
layers = model_config.num_layers if hasattr(model_config, "num_layers") else model_config.n_layer
|
||||||
except:
|
except:
|
||||||
layers = None
|
layers = None
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue