You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @vballoli,
It seems to have a bug in the code of AGC:
ifmodelisnotNone:
assertignore_agcnotin [None, []], "You must specify ignore_agc for AGC to ignore fc-like(or other) layers"names= [nameforname, moduleinmodel.named_modules()]
formodule_nameinignore_agc:
ifmodule_namenotinnames:
raiseModuleNotFoundError("Module name {} not found in the model".format(module_name))
params= [{"params": list(module.parameters())} forname,
moduleinmodel.named_modules() ifnamenotinignore_agc]
else:
params= [{"params": list(module.parameters())} forname,
moduleinmodel.named_modules()]
When model is None then the else part of the code cannot get name and module from model.named_modules().
Thanks
The text was updated successfully, but these errors were encountered:
Hi @vballoli,
It seems to have a bug in the code of AGC:
When
model is None
then theelse
part of the code cannot getname
andmodule
frommodel.named_modules()
.Thanks
The text was updated successfully, but these errors were encountered: