Thanks for the response.
It is because I’m compiling it in my docker container, and so I don’t have any caching functionality.
With Tensorflow I could built it in a build image but I seem to be unable to do the same with Pytorch.
So I build it in my container each time. What I was wondering were whether I could save the output of the compilation to a shared folder and then copy it in during image build in the following builds.
Do you know whether this is possible?