Skip to content

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

Open
riron1206 wants to merge 1 commit intoNVlabs:mainfrom
riron1206:fix/leaf-inplace-operation
Open

Fix leaf Variable in-place operation error by using out-of-place addi…#199
riron1206 wants to merge 1 commit intoNVlabs:mainfrom
riron1206:fix/leaf-inplace-operation

Conversation

@riron1206
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant