This is the result
Quadro P2000
Memory Usage Training Epoch 0, after Batch 0:
Allocated: 0.0012102127075195312 GB
Cached:    0.025390625 GB
Quadro P2000
Memory Usage Training Epoch 0, after Batch 1:
Allocated: 0.001216888427734375 GB
Cached:    0.0390625 GB
Quadro P2000
Memory Usage Training Epoch 0, after Batch 2:
Allocated: 0.0012154579162597656 GB
Cached:    0.0390625 GB
Quadro P2000
Memory Usage Training Epoch 0, after Batch 3:
Allocated: 0.0012187957763671875 GB
Cached:    0.0390625 GB
Quadro P2000
Memory Usage Training Epoch 0, after Batch 4:
Allocated: 0.0012211799621582031 GB
Cached:    0.0546875 GB
Memory Usage Validation Epoch 0, after Batch 0:
Allocated: 0.0059795379638671875 GB
Cached:    0.0546875 GB
Memory Usage Validation Epoch 0, after Batch 1:
Allocated: 0.007592201232910156 GB
Cached:    0.056640625 GB
Memory Usage Validation Epoch 0, after Batch 2:
Allocated: 0.0030107498168945312 GB
Cached:    0.056640625 GB
Memory Usage Validation Epoch 0, after Batch 3:
Allocated: 0.005007266998291016 GB
Cached:    0.056640625 GB
Memory Usage Validation Epoch 0, after Batch 4:
Allocated: 0.003980159759521484 GB
Cached:    0.056640625 GB
EPOCH 0, TRAINING_LOSS (2.2453632831573485, 0.1989474530886867), VALIDATION_LOSS (2.2376667261123657, 0.40168538297584394), DURATION 2.966729164123535s
Quadro P2000
Memory Usage Training Epoch 1, after Batch 0:
Allocated: 0.0012125968933105469 GB
Cached:    0.056640625 GB
Quadro P2000
Memory Usage Training Epoch 1, after Batch 1:
Allocated: 0.001220703125 GB
Cached:    0.056640625 GB
Quadro P2000
Memory Usage Training Epoch 1, after Batch 2:
Allocated: 0.0012502670288085938 GB
Cached:    0.09375 GB
Quadro P2000
Memory Usage Training Epoch 1, after Batch 3:
Allocated: 0.0012288093566894531 GB
Cached:    0.09375 GB
Quadro P2000
Memory Usage Training Epoch 1, after Batch 4:
Allocated: 0.0012106895446777344 GB
Cached:    0.09375 GB
Memory Usage Validation Epoch 1, after Batch 0:
Allocated: 0.005021572113037109 GB
Cached:    0.09375 GB
Memory Usage Validation Epoch 1, after Batch 1:
Allocated: 0.005797863006591797 GB
Cached:    0.09375 GB
Memory Usage Validation Epoch 1, after Batch 2:
Allocated: 0.0034432411193847656 GB
Cached:    0.09375 GB
Memory Usage Validation Epoch 1, after Batch 3:
Allocated: 0.005297183990478516 GB
Cached:    0.09375 GB
Memory Usage Validation Epoch 1, after Batch 4:
Allocated: 0.0065517425537109375 GB
Cached:    0.09375 GB
EPOCH 1, TRAINING_LOSS (2.2856598854064942, 0.3632478665416056), VALIDATION_LOSS (2.1910706043243406, 0.1504089364643012), DURATION 3.4313414096832275s
Quadro P2000
Memory Usage Training Epoch 2, after Batch 0:
Allocated: 0.0012302398681640625 GB
Cached:    0.09375 GB
Quadro P2000
Memory Usage Training Epoch 2, after Batch 1:
Allocated: 0.0012173652648925781 GB
Cached:    0.09375 GB
Quadro P2000
Memory Usage Training Epoch 2, after Batch 2:
Allocated: 0.0012311935424804688 GB
Cached:    0.09375 GB
Quadro P2000
Memory Usage Training Epoch 2, after Batch 3:
Allocated: 0.0012059211730957031 GB
Cached:    0.09375 GB
Quadro P2000
Memory Usage Training Epoch 2, after Batch 4:
Allocated: 0.0012116432189941406 GB
Cached:    0.09375 GB
Memory Usage Validation Epoch 2, after Batch 0:
Allocated: 0.005806446075439453 GB
Cached:    0.09375 GB
Memory Usage Validation Epoch 2, after Batch 1:
Allocated: 0.00406646728515625 GB
Cached:    0.09375 GB
Memory Usage Validation Epoch 2, after Batch 2:
Allocated: 0.006463527679443359 GB
Cached:    0.09375 GB
Memory Usage Validation Epoch 2, after Batch 3:
Allocated: 0.002354145050048828 GB
Cached:    0.09375 GB
Memory Usage Validation Epoch 2, after Batch 4:
Allocated: 0.004904747009277344 GB
Cached:    0.09375 GB
EPOCH 2, TRAINING_LOSS (2.33304762840271, 0.16655649927292412), VALIDATION_LOSS (2.1567287921905516, 0.2492085923908138), DURATION 2.8533482551574707s
Quadro P2000
Memory Usage Training Epoch 3, after Batch 0:
Allocated: 0.0012235641479492188 GB
Cached:    0.09375 GB
Quadro P2000
Memory Usage Training Epoch 3, after Batch 1:
Allocated: 0.0012049674987792969 GB
Cached:    0.09375 GB
Quadro P2000
Memory Usage Training Epoch 3, after Batch 2:
Allocated: 0.0012340545654296875 GB
Cached:    0.09375 GB
Quadro P2000
Memory Usage Training Epoch 3, after Batch 3:
Allocated: 0.0012340545654296875 GB
Cached:    0.09375 GB
Quadro P2000
Memory Usage Training Epoch 3, after Batch 4:
Allocated: 0.0012211799621582031 GB
Cached:    0.09375 GB
Memory Usage Validation Epoch 3, after Batch 0:
Allocated: 0.005489826202392578 GB
Cached:    0.09375 GB
Memory Usage Validation Epoch 3, after Batch 1:
Allocated: 0.0030603408813476562 GB
Cached:    0.09375 GB
Memory Usage Validation Epoch 3, after Batch 2:
Allocated: 0.004867076873779297 GB
Cached:    0.09375 GB
Memory Usage Validation Epoch 3, after Batch 3:
Allocated: 0.004198551177978516 GB
Cached:    0.09375 GB
Memory Usage Validation Epoch 3, after Batch 4:
Allocated: 0.0038518905639648438 GB
Cached:    0.09375 GB
EPOCH 3, TRAINING_LOSS (1.9486108303070069, 0.10505638131828297), VALIDATION_LOSS (2.0732335805892945, 0.15639371664337126), DURATION 3.158864974975586s
Quadro P2000
Memory Usage Training Epoch 4, after Batch 0:
Allocated: 0.0012073516845703125 GB
Cached:    0.09375 GB
Quadro P2000
Memory Usage Training Epoch 4, after Batch 1:
Allocated: 0.0012192726135253906 GB
Cached:    0.09375 GB

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-5-c38815eca75e> in <module>
     17 
     18 
---> 19         score, y_pred1,y_pred2 = model(x1,x2) #train
     20         optimizer.zero_grad()
     21 

~\AppData\Local\Continuum\anaconda3\envs\pytorch\lib\site-packages\torch\nn\modules\module.py in __call__(self, *input, **kwargs)
    556             result = self._slow_forward(*input, **kwargs)
    557         else:
--> 558             result = self.forward(*input, **kwargs)
    559         for hook in self._forward_hooks.values():
    560             hook_result = hook(self, input, result)

<ipython-input-2-e9430b51afae> in forward(self, seq1, seq2)
     25         h0.normal_()
     26 
---> 27         _, last_hidden1 = self.encoder(X1,h0)
     28         encoded1 = last_hidden1[-1].repeat((len(X1),1,1))
     29 

~\AppData\Local\Continuum\anaconda3\envs\pytorch\lib\site-packages\torch\nn\modules\module.py in __call__(self, *input, **kwargs)
    556             result = self._slow_forward(*input, **kwargs)
    557         else:
--> 558             result = self.forward(*input, **kwargs)
    559         for hook in self._forward_hooks.values():
    560             hook_result = hook(self, input, result)

~\AppData\Local\Continuum\anaconda3\envs\pytorch\lib\site-packages\torch\nn\modules\rnn.py in forward(self, input, hx)
    725         if batch_sizes is None:
    726             result = _VF.gru(input, hx, self._flat_weights, self.bias, self.num_layers,
--> 727                              self.dropout, self.training, self.bidirectional, self.batch_first)
    728         else:
    729             result = _VF.gru(input, batch_sizes, hx, self._flat_weights, self.bias,

RuntimeError: cuDNN error: CUDNN_STATUS_INTERNAL_ERROR