build onnx onnxruntime and pytorch from source
- Setup the onnx, ort and torch version
export onnx_version==1.12.0
export ort_version=1.13.1
export torch_version=1.12.1
You can also update the
protobuf
version inside thebuild_onnx_from_source.sh
file
- Update the base image
FROM ***
in the Dockerfile
Use the base image for your local build, e.g. ACPT (Azure Container for Pytorch) image
- Build the image
docker build . -t debug_image --no-cache