Create zero tensor on GPU directly with v0.4/0.5 API

As titled, is there any concise/fast way?

torch.zeros(sizes, device=‘cuda’)

Will that make a difference between this and torch.zeros(sizes).to(device)?

torch.zeros(sizes, device=device) won’t copy. functionally they are the same