Thanks, I think I now understand it more clearly
With the following changes it works perfectly 
   t1=outputs[999]
    t1=t1.unsqueeze(0)
  #  print(t1)
    
    t2=outputs2[998]
    t2=t2.unsqueeze(0)