print(encoder.cuda())
EncoderRNN (
  (embedding): Embedding(5955, 500)
  (gru): GRU(500, 500, num_layers=2, batch_first=True)
)

print(encoder)
EncoderRNN (
  (embedding): Embedding(5955, 500)
  (gru): GRU(500, 500, num_layers=2, batch_first=True)
)

The print result is same.How can I know  If a Variable is a cuda Varialbe?