コード例 #1
0
ファイル: space.py プロジェクト: hypernicon/pyec
 def convert(self, x):
     if self.gpu:
         try:
             return LayeredRnnGenotype.compileGpu(x)
         except:
             import traceback
             traceback.print_exc()
             raise
     else:
         return LayeredRnnGenotype.compile(x)
コード例 #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)