Hello @pascal.soveaux
I am actually very interested to understand why my solution is wrong.
Briefly, my goal is to move the values of test_sensor to test_tensor_2 and then turn test_tensor to a zero tensor without allocating new memory anywhere in the process (if possible). I can sacrifice a bit of computation time for this but not memory. What would you think is a better implementation?
I don’t think the rest of the code is very relevant, but in case you want to see more of it you could see the function here (it’s called “compose_messages”): https://github.com/kovanostra/message-passing-neural-network/blob/v1.6.0/message_passing_nn/utils/messages.cpp 2
Thanks a lot for your time and please tell me if you need any more context!