optimized_model.save("model_for_deployment.pt")
```
For more details, see the documentation. 
(Beta) Resampling Improvement
In release 0.8, we vectorized the operation in torchaudio.compliance.kaldi.resample_waveform, which improved the performance of resample_waveform and torchaudio.transforms.Resample. In this release, we have further revised the way the resampling algorithm is implemented. 
We have:
*  Added Kaiser Window support for a wider range of resampling quality.
*  Added rolloff parameter for anti-aliasing control.
*  Added the mechanism to precompute the kernel and cache it in torchaudio.transforms.Resample for even faster operation.
*  Moved the implementation from torchaudio.compliance.kaldi.resample_waveform to torchaudio.functional.resample and deprecated torchaudio.compliance.kaldi.resample_waveform.