VILA icon indicating copy to clipboard operation
VILA copied to clipboard

Fix leaf Variable in-place operation error by using out-of-place addi…

Open riron1206 opened this issue 9 months ago • 0 comments

Replacing += with text_embeds = text_embeds + (...) avoids the "leaf Variable that requires grad is being used in an in-place operation" RuntimeError in PyTorch.

riron1206 avatar Feb 14 '25 11:02 riron1206