How does the backward pass get plumbed in and other rudimentary loss function questions
Since I’m just imitating what I see elsewhere there’s a few things I don’t understand about loss functions. My second question is what the last two lines are doing. What does the view(*repeat(… do? And what does mul_(tensor.expand_as(…) do? Last question is, does the DiceLoss class make sense? When I first started looking at adding a new loss function a few days ago it seemed overwhelming, but this seems like a rather trivial piece of code. Thanks in advance.
mattmacy
apaszke