def _rebuild(cls, func_reduced, bind, targetoptions, config): """ Rebuild an instance. """ func = serialize._rebuild_function(*func_reduced) instance = cls(func, bind, targetoptions) instance._deserialize_config(config) return instance
def _rebuild(cls, uuid, name, defn_reduced): from numba.core import serialize try: return cls._memo[uuid] except KeyError: defn = serialize._rebuild_function(*defn_reduced) llc = cls(name=name, defn=defn) llc._register() llc._set_uuid(uuid) return llc
def _rebuild(cls, uuid, func_reduced, locals, targetoptions, impl_kind, can_compile, sigs): """ Rebuild an Dispatcher instance after it was __reduce__'d. """ try: return cls._memo[uuid] except KeyError: pass py_func = serialize._rebuild_function(*func_reduced) self = cls(py_func, locals, targetoptions, impl_kind) # Make sure this deserialization will be merged with subsequent ones self._set_uuid(uuid) for sig in sigs: self.compile(sig) self._can_compile = can_compile return self
def _rebuild(cls, func_reduced, return_type, args, inline, debug): return cls(serialize._rebuild_function(*func_reduced), return_type, args, inline, debug)
def _rebuild(cls, func_reduced, debug, inline): func = serialize._rebuild_function(*func_reduced) return compile_device_template(func, debug=debug, inline=inline)
def _rebuild(cls, *args): return cls(_serialize._rebuild_function(*args))
def _rebuild(cls, redfun, locals, targetoptions): return cls(serialize._rebuild_function(*redfun), locals, targetoptions)