import torch
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
from nets.models import Unet3D
import os
if __name__ == '__main__':
torch的pth模型转jit模型,用于c++的libtorch部署
于 2023-04-25 17:09:54 首次发布
import torch
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
from nets.models import Unet3D
import os
if __name__ == '__main__':