[export] build the infra to rollout predispatch export. (#122326)

Test Plan:
fbcode:caffe2/test/quantization:test_quantization
fbcode:bolt/nn/executorch/backends/tests:qnn_test
fbcode:on_device_ai/helios/compiler_tests/...
fbcode:pyspeech/tests:pyspeech_utils_test_oss
fbcode:caffe2/test:quantization_pt2e_qat
fbcode:on_device_ai/Assistant/Jarvis/tests:test_custom_ops
fbcode:modai/test:test_modai
fbcode:executorch/exir/backend/test:test_partitioner

Differential Revision: D55133846

Pull Request resolved: https://github.com/pytorch/pytorch/pull/122326
Approved by: https://github.com/tugsbayasgalan
This commit is contained in:
Zhengxu Chen
2024-03-22 00:55:10 +00:00
committed by PyTorch MergeBot
parent 4b535906aa
commit b1fa0ce4aa
2 changed files with 58 additions and 50 deletions

View File

@ -100,6 +100,10 @@ def log_torchscript_usage(api: str):
return
def export_api_rollout_check() -> bool:
return False
def justknobs_check(name: str) -> bool:
"""
This function can be used to killswitch functionality in FB prod,