Tracing captures the operations invoked during a model run and turns them into an intermediate representation, such as TorchScript, that can support later graph optimization and compilation. section 6.1.1
Trace a model input
A GPT-2 example uses torch.jit.trace with tokenized text. For a model accepting images and text, tracing with text alone can prune image operations from the resulting representation. section 6.1.1
Figure 6.2 An example of an unoptimized network compared to the same network optimized using graph optimization. CBR is a NVIDIA fused layer kernel that simply stands for Convolution, Bias, and ReLU. See the following NVIDIA blog post for reference: https://mng.bz/PNvw.
Tracing can make later graph optimization easier; this figure contrasts an unoptimized network with an optimized one. section 6.1.1


















