How to get the minimal subset of libtorch for inferencing in C++?

Hi,

To the best of my knowledge, this is not possible at the moment. This is mainly because we have a dynamic dispatcher and so which part of the lib will be used is not known at compilation time.
That being said, I think there is work towards this as this would be very useful for the mobile build as well. But I don’t think there is any solution yet.

2 Likes