kovanostra:

test_tensor_2 = test_tensor;


If I understood correctly that is suspicious because now you only have 1 tensor. If you zero_() you are losing your previous results. It works because you are creating a new tensor on the next line (and the first initialization is useless).
Maybe I did not understand.