Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…-learning into dev
  • Loading branch information
KevinMusgrave committed Aug 12, 2022
2 parents cb89426 + de6bfa4 commit a5819d1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conda_build/pytorch-metric-learning/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{% set name = "pytorch-metric-learning" %}
{% set version = "1.5.0" %}
{% set version = "1.5.2" %}

package:
name: "{{ name|lower }}"
version: "{{ version }}"

source:
url: "https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz"
sha256: c5189be2bd587bb44b0eea286f62623288138c7e791a5b415a39a0f0730d820b
sha256: ccf227dfc9858ece1f4dac96e1c5224627fde6efce80008de347415d5836287e

build:
number: 0
Expand Down
9 changes: 9 additions & 0 deletions docs/faq.md
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.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ nav:
- How to extend this library:
- Custom losses: extend/losses.md
- Custom miners: extend/miners.md
- Frequently Asked Questions: faq.md
theme:
name: 'material'
palette:
Expand Down

0 comments on commit a5819d1

Please sign in to comment.