Files
pytorch/torch
zhxchen17 e20784f228 [dynamo] Support BUILTIN_MATCH serialization. (#157016)
Serialize BUILTIN_MATCH since they are all stored in __builtin__ dict.

Also fixed an issue that the wrong global scope is passed to CheckFunctionManager while loading guards. Previously we can always reuse the compile-time global scope for evaluating guards because the compile-time and runtime global scope are always the same.

For precompile, we need to serialize the compile-time global scope for loading only. We need to point the CheckFunctionManager to the new global scope after loading is finished for evaluating guards.

Differential Revision: [D77159313](https://our.internmc.facebook.com/intern/diff/D77159313/)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/157016
Approved by: https://github.com/jansel, https://github.com/jamesjwu
2025-07-02 20:24:24 +00:00
..
2025-06-14 18:18:43 +00:00
2025-06-27 19:13:40 +00:00
2025-04-27 09:56:42 +00:00
2025-06-22 15:52:27 +00:00
2025-06-30 16:58:06 +00:00
2025-04-27 09:56:42 +00:00
2025-06-14 18:18:43 +00:00