Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: cannot perform reduction function min on tensor with no elements because the operation does not have an identity #80

Open
Morceguito opened this issue Apr 22, 2021 · 0 comments

Comments

@Morceguito
Copy link

File "/content/drive/My Drive/MADDoG/models/loss.py", line 75, in hard_example_mining
dist_mat[is_neg].contiguous().view(N, -1), 1, keepdim=True)
RuntimeError: cannot perform reduction function min on tensor with no elements because the operation does not have an identity

This only works when I have a batchsize of 10, but less than that this error appears.

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

No branches or pull requests

1 participant