Beispiel #1
0
 def convert(self, x):
     if self.gpu:
         try:
             return LayeredRnnGenotype.compileGpu(x)
         except:
             import traceback
             traceback.print_exc()
             raise
     else:
         return LayeredRnnGenotype.compile(x)
Beispiel #2
0
 def convert(self, x):
     if self.gpu:
         try:
             return LayeredRnnGenotype.compileGpu(x)
         except:
             import traceback
             traceback.print_exc()
             raise
     else:
         return LayeredRnnGenotype.compile(x)
Beispiel #3
0
 def convert(self, x):
     return LayeredRnnGenotype.compile(x)