DeltaEdit icon indicating copy to clipboard operation
DeltaEdit copied to clipboard

RuntimeError: Function FusedLeakyReLUFunctionBackward

Open Ashly555 opened this issue 1 year ago • 3 comments

I really like your work. I've encountered a problem using DeltaEdit for a different field, but during the training process, I encountered the following error:

Traceback (most recent call last): File "scripts/train.py", line 63, in main(opts) File "scripts/train.py", line 52, in main loss.backward() File "/root/autodl-tmp/conda/envs/Del/lib/python3.8/site-packages/torch/tensor.py", line 221, in backward torch.autograd.backward(self, gradient, retain_graph, create_graph) File "/root/autodl-tmp/conda/envs/Del/lib/python3.8/site-packages/torch/autograd/init.py", line 130, in backward Variable._execution_engine.run_backward( RuntimeError: Function FusedLeakyReLUFunctionBackward returned an invalid gradient at index 1 - got [4] but expected shape compatible with [512]

Is there any solution to this problem?

Ashly555 avatar Apr 09 '24 13:04 Ashly555

HI,have u solve the problem?Cause i have encountered the same problem.

br0kyy avatar Jul 21 '24 09:07 br0kyy

HI,have u solve the problem?Cause i have encountered the same problem.

visa980911 avatar Aug 08 '24 07:08 visa980911

HI,have u solve the problem?Cause i have encountered the same problem.

HI,have u solve the problem?Cause i have encountered the same problem.

visa980911 avatar Aug 08 '24 07:08 visa980911

Thank you for your interest! We haven’t encountered this issue in our experiments. Please try switching your environment—our method has been verified to work with ​Python 3.8 + PyTorch 1.7 or 1.12.

Yueming6568 avatar Jun 22 '25 16:06 Yueming6568