pytorch/executorch ciflow/trunk/20284 (opens in new tab)
#Python Fix ARM test listing failures caused by torch import at collection time (#20284) Summary: The ~180 ARM test listings fail in fbcode//mode/opt during pytest collection with AttributeError: module 'torch' has no attribute '_utils'. Root cause: torch._utils is importable but is not bound as an attribute on the torch module, so importing torch._dynamo (pulled in via executorch.exir / torchao when a test module is collected) reads torch._utils directly and crashes the whole listing. This i...
Read the original article