def UpdateCurrentXAndY(self, indexSuperBatch):
     if (self.currentX == None and self.currentY ==None):
         self.currentX,self.currentY=LoadDataFunctions.just_shared_dataset(self.dataLoader.getDataSetByBatchIndex(indexSuperBatch))
     else:
         rawX,rawY=self.dataLoader.getDataSetByBatchIndex(indexSuperBatch)
         if (self.dataLoader.IsNewDataSet == True):
             self.currentX.set_value(np.asarray(rawX,dtype=theano.config.floatX),borrow=True)
             self.currentY.set_value(np.asarray(rawY,dtype=theano.config.floatX),borrow=True)
             print ("raw DataSet Loaded in GPU Memory")
 def getTensorDataSet(self, superBatchIndexRequested):
     '''
     Primero retorna X y despues Y, retorna array's Tensor de theno
     '''
     rawData=self.dataLoader.getDataSetByBatchIndex(superBatchIndexRequested)
     return LoadDataFunctions.shared_dataset(rawData)