Soft_dice_loss Implementation Error

I am having an issue implementing the soft_dice_loss function for the UNQ_C5. Please could you help me? Below is the error code.
Thank you


Did you check out the grader’s suggestion?

can you first confirm this is week3 or week 1 assignment?

if it is week 3 assignment, here is link comment

the most usual mistake would be using incorrect code implementation

It is W3. Thank you for the link, I saw it before and tried to ensure that I followed it with no luck.

Yes I did

You can send me screenshot of the codes for the concerned unittest you got this error. Click on my name and then message.

I fixed it and passed that assignment. Thank you for all your help, the link you sent helped because I went back to it and found what I was doing wrong. And that is implementing the Multi class

1 Like