def elementwise_grad(fun, argnum=0):
    def sum_output(*args, **kwargs):
        return np.sum(fun(*args, **kwargs))
    return grad(sum_output, argnum=argnum)
Send currently selected regions to the peer.
dataset/ETHPy150Open HIPS/autograd/autograd/convenience_wrappers.py/elementwise_grad--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/sub_collab/peer/basic.py/BasicPeer.sendSelectionUpdate