@smth I’m sorry if it was not clear. Actually I meant that X can be on any device, then how to construct a Tensor with numpy data or 0’s on that same device. I edited my post, please let me know if I should open a new topic for this.