Exemplo n.º 1
0
 def _numba_compile(func):
     global __tr_map__
     llvm = kws.pop("llvm", True)
     if func in __tr_map__:
         print ("Warning: Previously compiled version of %r may be " "garbage collected!" % (func,))
     t = Translate(func, *args, **kws)
     t.translate()
     __tr_map__[func] = t
     return t.get_ctypes_func(llvm)
Exemplo n.º 2
0
 def _numba_compile(func):
     global __tr_map__
     llvm = kws.pop('llvm', True)
     if func in __tr_map__:
         print(
             "Warning: Previously compiled version of %r may be "
             "garbage collected!" % (func, ))
     t = Translate(func, *args, **kws)
     t.translate()
     __tr_map__[func] = t
     return t.get_ctypes_func(llvm)