Introduction to TorchScript, PyTorch Documentation, 2024 - Official documentation explaining both tracing (torch.jit.trace) and scripting (torch.jit.script) approaches in PyTorch, with examples and use cases.
Better performance with tf.function, TensorFlow Documentation, 2024 (TensorFlow) - Official guide detailing TensorFlow's tracing-based graph capture mechanism (tf.function) and its implicit handling of Python control flow with AutoGraph.
TVM: An Automatic End-to-End Optimizing Compiler for Deep Learning, Tianqi Chen, Thierry Moreau, Ziheng Jiang, Lianmin Zheng, Eddie Yan, Haichen Shen, Meghan Cowan, Leyuan Wang, Yuwei Hu, Luis Ceze, Carlos Guestrin, Arvind Krishnamurthy, 201813th USENIX Symposium on Operating Systems Design and Implementation (OSDI 18) (USENIX Association)DOI: 10.5555/3342354.3342416 - Provides context for the need for deep learning compilers and graph intermediate representations (IRs), which are the output of tracing/scripting, and discusses challenges in optimizing them.