Hi,
I think you shouldn’t wrap your variable like this 
t1=Variable(torch.FloatTensor(outputs.data[999]),requires_grad=True)
because it won’t know the relationship between t1 and outputs. I think You can directly index the variable outputs, or use split to get the information you want from the sequence.