def get_function(self, function_bytes): eggroll_serdes.bytes_security_check(function_bytes) try: return cloudpickle.loads(function_bytes) except: import pickle return pickle._loads(function_bytes)
def _create_functor(self, task_info: processor_pb2.TaskInfo): if task_info.function_bytes == b'blank': return None try: return cloudpickle.loads(task_info.function_bytes) except: import pickle return pickle._loads(task_info.function_bytes)
def __get_function(info: _TaskInfo): return f_pickle.loads(info._function_bytes)
def deserialize(_bytes): bytes_security_check(_bytes) return cloudpickle.loads(_bytes)
def deserialize(_bytes): return cloudpickle.loads(_bytes)