This could be very helpful, but I wonder why he would need to use xtensor when he is already using libtorch. basically nearly all numpy functions are either directlty implemented in libtorch or can be easily implemented using existing functionalities.
I myself faced some conflicts couple of months ago when I tried to use both of them in a project and ultimately I gave up on xtensor and went full libtorch and I havent looked back.