Receptive-Field-in-Pytorch
Receptive-Field-in-Pytorch copied to clipboard
Boolean value of Tensor with more than one value is ambiguous
I'm getting this runtime error, caused by the "if m.bias:" line
I resolved this issue, but now I'm getting "zero-size array to reduction operation maximum which has no identity" from the "RF=[np.max(idx)-np.min(idx)+1 for idx in idx_nonzeros]" line.