pytorch/tools/setup_helpers
Will Constable b9e535a64a Add non-eager registration to dispatch autogen (#74557)
Summary:
Previously, the torchscript backend would be (partially) initialized at startup.
- the dispatcher registrations would be registered,
- but other backend components would not be initialized until explicitly calling
  the backend init function

With this change, the torchscript backend is not initialized until its explicit
initialization function is called.

This enables external backends to register their own backend instead of the torchscript
backend to the same (Lazy) key.

Lands a change contributed by antoniojkim via lazy_tensor_staging branch (https://github.com/pytorch/pytorch/issues/73973)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/74557

Reviewed By: bdhirsh

Differential Revision: D35051464

Pulled By: wconstab

fbshipit-source-id: 5a8b0851293e394f49427d1416ee571a8881fe9f
(cherry picked from commit ef745a4a2c8d1d7f9510541a20f1f40625ce29de)
2022-04-01 03:42:53 +00:00
..
__init__.py Strictly type everything in .github and tools (#59117) 2021-06-07 14:49:36 -07:00
cmake.py [PyTorch] Add codegen unboxing ability (#69881) 2022-03-01 23:28:13 +00:00
env.py Strictly type everything in .github and tools (#59117) 2021-06-07 14:49:36 -07:00
gen_unboxing.py [PyTorch] Add codegen unboxing ability (#69881) 2022-03-01 23:28:13 +00:00
gen_version_header.py Strictly type everything in .github and tools (#59117) 2021-06-07 14:49:36 -07:00
gen.py Rewrite of ATen code generator (#42629) 2020-08-31 09:00:22 -07:00
generate_code.py Add non-eager registration to dispatch autogen (#74557) 2022-04-01 03:42:53 +00:00
numpy_.py