def masked_mean(tensor, mask, dim): masked = torch.mul(tensor, mask) # Apply the mask using an element-wise multiply return ...
確定! 回上一頁