那就可以先把tensorRT模型保存下来,下次推理的时候直接加载tensorRT模型就好: torch.save(model_trt.state_dict(), 'alexnet_trt.pth') from torch2trt import ...
確定! 回上一頁