Fix TORCH_COMPILE_DEBUG incompatibility with aot inductor (#106169)
Record replay tries to record a module which is already available
Pull Request resolved: https://github.com/pytorch/pytorch/pull/106169
Approved by: https://github.com/anijain2305, https://github.com/jansel