@glaringlee I think you need to add “\” before “<” to print the type. I ran

t = t.contiguous();
std::vector<float> v(t.data_ptr<float>(), t.data_ptr<float>() + t.numel());

Is it what you are saying?
Actually there is no error, it just get stuck at this point, even I’ve waited for a long time.