-
Notifications
You must be signed in to change notification settings - Fork 657
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/KevinMusgrave/pytorch-metric…
…-learning into dev
- Loading branch information
Showing
3 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Frequently Asked Questions | ||
|
||
## Large batch sizes and the `INT_MAX` error | ||
|
||
A large batch size results in a huge number of pairs/triplets. When the `loss_and_miner_utils` code processes a huge number of tuples, it can cause a PyTorch error: | ||
|
||
`RuntimeError: nonzero is not supported for tensors with more than INT_MAX element` | ||
|
||
To fix this error, lower your batch size. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters