Receptive-Field-in-Pytorch icon indicating copy to clipboard operation
Receptive-Field-in-Pytorch copied to clipboard

Boolean value of Tensor with more than one value is ambiguous

Open sciadopitys opened this issue 4 years ago • 1 comments

I'm getting this runtime error, caused by the "if m.bias:" line

sciadopitys avatar May 25 '21 23:05 sciadopitys

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.

sciadopitys avatar May 27 '21 23:05 sciadopitys