How to use docker image of libtorch?

Dear developers:

So sorry to bother you again and I have trouble in the pytorch/libtorch-cxx11-builde.

I havn’t find any document about this docker image and I tried to build my applications on it, so I pull the docker image:

docker pull pytorch/libtorch-cxx11-builder:cuda121

And I tried to find libtorch:

# Enter the container
docker run -t -i --rm pytorch/libtorch-cxx11-builder:cuda121 /bin/bash
# Try to find libtorch in the container
find / -name "libtorch.so"  # Nothing to return
find / -name "*torch*"        # Nothing to return

I’m wondering about the purpose of creating this image:

  • Is it used to build other programs?
  • Do I need to install libtorch in the container myself?

I appreciate your dedication and have a happy and blessed life! :smiling_face_with_three_hearts:

John

This container is a builder image used in the pytorch/builder repository to build the binaries.

1 Like