示例#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)