Hi,
I am getting the following error:

Screen Shot 2021-05-31 at 12.58.21 AM2022×1336 380 KB

While I am running the following code:

Screen Shot 2021-05-31 at 1.03.24 AM2010×660 146 KB

This is what in train method:

Screen Shot 2021-05-31 at 1.05.10 AM1606×808 126 KB

I am stuck with this error and I would appreciate your help. Please note when I change the data type from bool to long for masks I am getting 0s only in pred, 0s only in y_pred, and 0s only in y_true, and this is not should be the case. Please advice.
Thank you.