Torchscript with ToTensor / ToImage

I see in the docs that torchvision’s ToTensor (deprecated) and the recommended replacement that includes ToImage are not supported by torchscript. What are the recommended ways to serialize these transforms with or without torchscript? Say you have a Sequential object with your transforms and you would like to serialize as one object.