

def __getstate__(self):
    state = self.__dict__.copy()
    del state['worker']
    return state

dataset/ETHPy150Open mila-udem/blocks-extras/blocks_extras/extensions/synchronization.py Synchronize.__getstate__/original