JuliaWolleb / diffusion-anomaly

Anomaly detection with diffusion models
MIT License
119 stars 23 forks source link

RuntimeError: a leaf Variable that requires grad is being used in an in-place operation. #9

Open William9Baker opened 1 year ago

William9Baker commented 1 year ago

I've encountered this error with "RuntimeError: a leaf Variable that requires grad is being used in an in-place operation." in dist_util.py, where with th.no_grad(): dist.broadcast(p, 0)

My enviroment is Windows 10 and PyTorch version is 1.8.1+cu10.1.