Skip to content

make subtb efficient#3

Open
hyeok9855 wants to merge 1 commit intoGFNOrg:mainfrom
hyeok9855:main
Open

make subtb efficient#3
hyeok9855 wants to merge 1 commit intoGFNOrg:mainfrom
hyeok9855:main

Conversation

@hyeok9855
Copy link

This PR resolves an inefficiency in the SubTB loss calculation.

The inefficiency comes from a for loop (over a batch), making things very slow when we use a large batch size. The loop is removed in this PR.

Also, to make SubTB loss consistent with other losses, 0.5 is multiplied, and the last .sum() is changed to .mean().

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