[fx2trt] fix acc_tracer when run against module that contains ScriptModule submodules (#67567)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/67567
- Fix an issue to allow it to work against modules that contains ScriptModule submodules.
- Fix a bug where `getattr(base_class, method_name)` could raise KeyError
Test Plan: linter; CI;
Reviewed By: 842974287
Differential Revision: D31956070
fbshipit-source-id: 1114937f380af437fd6d36cd811ef609d7faefe7