PyTorch 1.13中启用Caffe2的方法如下:
安装PyTorch 1.13: pip install torch==1.13
安装Caffe2: pip install caffe2
在代码中导入Caffe2:
import torch import caffe2
PyTorch 1.13中启用Caffe2的方法如下:
安装PyTorch 1.13: pip install torch==1.13
安装Caffe2: pip install caffe2
在代码中导入Caffe2:
import torch
import caffe2