Beispiel #1
0
 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
Beispiel #2
0
 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
Beispiel #3
0
 def _rebuild(cls, func_reduced, locals, targetoptions, can_compile, sigs):
     """
     Rebuild an Overloaded instance after it was __reduce__'d.
     """
     py_func = serialize._rebuild_function(*func_reduced)
     self = cls(py_func, locals, targetoptions)
     for sig in sigs:
         self.compile(sig)
     self._can_compile = can_compile
     return self
Beispiel #4
0
 def _rebuild(cls, func_reduced, locals, targetoptions, can_compile, sigs):
     """
     Rebuild an Overloaded instance after it was __reduce__'d.
     """
     py_func = serialize._rebuild_function(*func_reduced)
     self = cls(py_func, locals, targetoptions)
     for sig in sigs:
         self.compile(sig)
     self._can_compile = can_compile
     return self
    def _rebuild(cls, uuid, name, defn_reduced):
        from numba 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
Beispiel #6
0
    def _rebuild(cls, uuid, name, defn_reduced):
        from numba 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
Beispiel #7
0
 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
Beispiel #8
0
 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
Beispiel #9
0
 def _rebuild(cls, func_reduced, return_type, args, inline, debug):
     return cls(serialize._rebuild_function(*func_reduced), return_type,
                args, inline, debug)
Beispiel #10
0
 def _rebuild(cls, func_reduced, debug, inline):
     func = serialize._rebuild_function(*func_reduced)
     return compile_device_template(func, debug=debug, inline=inline)
Beispiel #11
0
 def _rebuild(cls, func_reduced, return_type, args, inline, debug):
     return cls(serialize._rebuild_function(*func_reduced), return_type,
                args, inline, debug)
Beispiel #12
0
 def _rebuild(cls, func_reduced, debug, inline):
     func = serialize._rebuild_function(*func_reduced)
     return compile_device_template(func, debug=debug, inline=inline)
Beispiel #13
0
 def _rebuild(cls, redfun, locals, targetoptions):
     return cls(serialize._rebuild_function(*redfun), locals, targetoptions)