decoder_output  Speed-Up Inference You can make use of torch.compile function and gain a speed-up of about 2-3x:   Copied prior_pipeline.prior = torch.compile(prior_pipeline.prior, mode="reduce-overhead", fullgraph=True)