Hi,
I just encountered an error, when I perform a bool slices operation like:
average = torch.mean(tensor[tensor[:] != 0]),
the system returns me an error: Function ‘AddmmBackward’ returned nan values in its 2th output.
I realized that this equation may not be a differentiable function, so I was wondering if there is a differentiable way can let me get the same result as the equation stated above.
Thanks.