Thank you @colesbury, this is an interesting implementation detail.
From what you just said, I guess the previous solution (numpy) worked because the tensor is sent by value rather than using a file descriptor ? Otherwise I don’t get it, I have used the numpy solution for months now.
can’t wait to try this.