예제 #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)
예제 #2
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)
예제 #3
0
파일: space.py 프로젝트: npinto/pyec
 def convert(self, x):
     return LayeredRnnGenotype.compile(x)