[quant][graphmode][refactor] Change signature of getModuleAccessPath (#32812)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/32812
We'll error out for the case we can't handle inside the function,
instead of checking each time in the callsite
Test Plan:
.
Imported from OSS
Differential Revision: D20087846
fbshipit-source-id: ae6d33a94adf29c4df86d67783e7ef8753c91f90