pytorch/torch
Chang Pan 74e53d0761 [TorchScript] clearer debug for ConcreteModuleType::findSubmoduleConcreteType (#166192)
Summary:
right now the log is just
```
RuntimeError: it != data_.modules_.end() INTERNAL ASSERT FAILED at "fbcode/caffe2/torch/csrc/jit/frontend/concrete_module_type.cpp":207, please report a bug to PyTorch.
```
we have no clue where the error happens
https://fb.workplace.com/groups/gpuinference/posts/789257990578348/?comment_id=789284783909002&reply_comment_id=789415260562621

Test Plan: UT

Reviewed By: jcwchen

Differential Revision: D80020093

Pull Request resolved: https://github.com/pytorch/pytorch/pull/166192
Approved by: https://github.com/gmagogsfm
2025-10-25 14:07:54 +00:00
..
_awaits
_C [fx] Optimize torch.fx.Node.replace_all_uses_with (#165889) 2025-10-25 03:44:41 +00:00
_C_flatbuffer
_custom_op [2/N] Fix ruff warnings (#164460) 2025-10-04 03:40:32 +00:00
_decomp Back out "Do not decompose in functionalization/proxy tensor if autograd wouldn't have decomposed (#164939)" (#165910) 2025-10-21 16:36:38 +00:00
_dispatch Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
_dynamo Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
_export Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
_functorch Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
_higher_order_ops Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
_inductor [Inductor][Autotune] Gracefully restart the autotune process after ULF failure (#166073) 2025-10-25 10:40:59 +00:00
_lazy Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
_library Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
_logging Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
_numpy Enable PLW0127 in ruff (#165851) 2025-10-21 03:30:57 +00:00
_prims Fix self assignment (#165816) 2025-10-18 18:51:52 +00:00
_prims_common [2/N] Use "is" in python type comparison (#165142) 2025-10-10 15:36:44 +00:00
_refs Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
_strobelight Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
_subclasses Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
_vendor
accelerator
amp Revert "[AMP][Refactor] Autocast dtype handling to simplify device-specific c… (#165221)" 2025-10-22 00:26:57 +00:00
ao Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
autograd Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
backends Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
compiler Megacache integration (#163533) 2025-10-15 22:49:15 +00:00
contrib
cpu Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
csrc [TorchScript] clearer debug for ConcreteModuleType::findSubmoduleConcreteType (#166192) 2025-10-25 14:07:54 +00:00
cuda Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
distributed Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
distributions [1/N] Use "is" in python type comparison (#165037) 2025-10-10 12:36:50 +00:00
export Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
fft
func
futures [5/N] Apply ruff UP035 rule (#164423) 2025-10-02 07:31:11 +00:00
fx Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
headeronly Remove likely unnecessary _EXPAND trick for non-windows in HIDDEN_NAMESPACE_BEGIN (#166203) 2025-10-25 04:44:07 +00:00
jit Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
legacy
lib [2/N] Mark unused parameters in C++ code (#165121) 2025-10-15 03:04:39 +00:00
linalg Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
masked Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
monitor
mps Add type annotations to MPS profiler utilities (#163486) 2025-09-27 23:00:53 +00:00
mtia Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
multiprocessing Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
nativert [2/N] Mark unused parameters in C++ code (#165121) 2025-10-15 03:04:39 +00:00
nested Enable all PIE rules on ruff (#165814) 2025-10-18 07:36:18 +00:00
nn Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
numa Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
onnx Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
optim Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
package Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
profiler Enable PLC0414 on ruff (#165828) 2025-10-22 04:56:52 +00:00
quantization [RFC] Add pyrefly to lintrunner (#165179) 2025-10-16 20:07:09 +00:00
signal Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
sparse [RFC] Add pyrefly to lintrunner (#165179) 2025-10-16 20:07:09 +00:00
special
testing [MPS] Add linalg.householder_product for MPS (#166090) 2025-10-24 21:13:56 +00:00
utils Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
xpu Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
__config__.py
__future__.py
__init__.py Fix race condition and make CUDA kthvalue deterministic (#165762) 2025-10-25 00:45:57 +00:00
_appdirs.py
_classes.py
_compile.py [4/N] Apply ruff UP035 rule to python code (#164206) 2025-10-01 19:05:53 +00:00
_custom_ops.py
_environment.py
_guards.py [4/N] Apply ruff UP035 rule to python code (#164206) 2025-10-01 19:05:53 +00:00
_jit_internal.py [2/N] More ruff SIM fixes (#165031) 2025-10-14 14:22:54 +00:00
_linalg_utils.py
_lobpcg.py Add initial suppressions for pyrefly (#164177) 2025-10-02 20:57:41 +00:00
_lowrank.py
_meta_registrations.py Enable all PIE rules on ruff (#165814) 2025-10-18 07:36:18 +00:00
_namedtensor_internals.py
_ops.py Use is rather than == to work around slow enum comparion in _ops.py (#165936) 2025-10-23 15:01:55 +00:00
_python_dispatcher.py
_size_docs.py
_sources.py
_storage_docs.py
_streambase.py
_tensor_docs.py [reland] Allow setting grad_dtype on leaf tensors (#164751) 2025-10-08 20:23:13 +00:00
_tensor_str.py Enable all PIE rules on ruff (#165814) 2025-10-18 07:36:18 +00:00
_tensor.py Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
_thread_safe_fork.py
_torch_docs.py Clarrifying input output angle unit in the docs for trigonometric fun… (#161248) 2025-10-18 11:53:48 +00:00
_utils_internal.py Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
_utils.py Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
_VF.py
_vmap_internals.py [4/N] Apply ruff UP035 rule to python code (#164206) 2025-10-01 19:05:53 +00:00
_weights_only_unpickler.py [4/N] Apply ruff UP035 rule to python code (#164206) 2025-10-01 19:05:53 +00:00
CMakeLists.txt Revert "[RELAND] Always build USE_DISTRIBUTED (#160449) and Make distributed modules importable even when backend not built (#159889) (#162594)" 2025-09-25 13:47:46 +00:00
custom_class_detail.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
custom_class.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
extension.h
functional.py [2/N] Fix ruff warnings (#164460) 2025-10-04 03:40:32 +00:00
header_only_apis.txt Move toUnderlying to headeronly (#165694) 2025-10-22 05:31:16 +00:00
hub.py Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
library.h Mark unused parameters in C++ code (#164912) 2025-10-09 06:23:25 +00:00
library.py Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
overrides.py Add scaled_grouped_mm_v2 and python API (#165154) 2025-10-15 17:47:23 +00:00
py.typed
quasirandom.py
random.py Revert "Add device argument to torch.random.get_rng_state (#163034)" 2025-10-04 15:25:45 +00:00
return_types.py
script.h
serialization.py Clean up unused Pyrefly suppressions (#166178) 2025-10-25 05:32:21 +00:00
storage.py [2/N] Use "is" in python type comparison (#165142) 2025-10-10 15:36:44 +00:00
torch_version.py
types.py Enable PLC0414 on ruff (#165828) 2025-10-22 04:56:52 +00:00
version.py.tpl