torch::Tensor t0 = torch::zeros(1);
torch::Tensor t1 = torch::ones(1);
t1 = t0.detach().clone();//does not work
t1 = t0.clone();//does not work
t1 = t0.detach();//does not work
t1 = t0.clone().detach();//does not work
t1.data().copy(t0.data());//does not compile
t1.data() = t0.data();//does not compile
t1.data_ptr() = t0.data();//does not compile
t1.data_ptr() = *t0.data_ptr();//does not compile

t1 = t0 //works but i can't verify if it copies the data or the reference		
assert((t1 == t0).item<bool>());//Verify that copy was succefull