Question about “torch.jit.xxxx”.
I would like to know how to serialize the models in “pytorch mobie”.
import torch
import torchvision

model = torchvision.models.resnet18(pretrained=True)
model.eval()
example = torch.rand(1, 3, 224, 224)
traced_script_module = torch.jit.trace(model, example)
traced_script_module.save("app/src/main/assets/model.pt")

But,the network I want to use is another network, such as ESPNet 3.
Does anyone know how to make a “.pt” file?