Hi, I searched that I’d need to use clone() to avoid inplace operation issue.
So, I cloned pred_R_imgs but I still have error.
When I commented them out, error would disappear.
Why does clone() work in this case?
pred_R_imgs=Net(O_img_tc)
pred_R_imgs[pred_R_imgs.clone()==0.0]=0.0001
pred_R_imgs[pred_R_imgs.clone()==-0.0]=0.0001