Skip to content

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