Solved by tom in post #2 
              
              
                I used torch::tensor(ArrayRef<float>) successfully. 
I’m not 100% certain whether that copies already. You might have to take care of ownership or clone the output while the array ref is still alive, I think you have to do that when you use form_blob, too. 
Best regards 
Thomas