Iterate over two Pytorch tensors at once?
I have two Pytorch tensors (really, just 1-D lists), t1 and t2. Is it possible to iterate over them in parallel, i.e. do something like 

for a,b in zip(t1,t2)
? 

Thanks.

For me (Python version 3.7.3 and PyTorch version 1.0.0) the zip function works as expected with PyTorch tensors:

&gt;&gt;&gt; import torch
&gt;&gt;&gt; t1 = torch.ones(3)
&gt;&gt;&gt; t2 = torch.zeros(3)
&gt;&gt;&gt; list(zip(t1, t2))
[(tensor(1.), tensor(0.)), (tensor(1.), tensor(0.)), (tensor(1.), tensor(0.))]


The list call is just needed to display the result. Iterating over zip works normally.
