__init__.py 274 B

123456
  1. import warnings
  2. from torch.onnx import _CAFFE2_ATEN_FALLBACK
  3. if not _CAFFE2_ATEN_FALLBACK:
  4. warnings.warn("Caffe2 support is not fully enabled in this PyTorch build. "
  5. "Please enable Caffe2 by building PyTorch from source with `BUILD_CAFFE2=1` flag.")