[Bug] (suggested fix) nn.Parameter
are not added to root after being traced in mmrazor.models.task_utils.tracer.fx.custom_tracer.build_graphmodule()
#633
Labels
bug
Something isn't working
Describe the bug
Trying to do QAT training using OpenVINOQuantizer and CustomTracer, I ran into an issue whenever there is a
torch.nn.Parameter
traced in the graph.Apologies but I need to redact the traceback heavily, however i will keep the necessary parts.
Post related information
I patched this locally by finding what happened to the graph after the model got traced. I found this couple of lines in
mmrazor.models.task_modules.tracer.fx.custom_tracer._prepare_module_dict()##L139--L144
. I added comments with my conclusions.The text was updated successfully, but these errors were encountered: