Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Fix zero loss tensor in SquadOutputLayer #1181

Closed
wants to merge 1 commit into from
Closed

Fix zero loss tensor in SquadOutputLayer #1181

wants to merge 1 commit into from

Conversation

hikushalhere
Copy link
Contributor

Summary:
In SquadOutputLayer we set start and end position losses to zeros. Those tensor objects have requires_grad set to True which leads to unused param error.

RuntimeError: Expected to have finished reduction in the prior iteration before starting a new one. This error indicates that your module has parameters that were not used in producing loss.

Reviewed By: borguz

Differential Revision: D18801364

@facebook-github-bot facebook-github-bot added CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported labels Dec 4, 2019
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D18801364

Summary:
Pull Request resolved: #1181

In SquadOutputLayer we set start and end position losses to zeros. Those tensor objects have `requires_grad` set to True which leads to unused param error.
```
RuntimeError: Expected to have finished reduction in the prior iteration before starting a new one. This error indicates that your module has parameters that were not used in producing loss.
```

Reviewed By: borguz

Differential Revision: D18801364

fbshipit-source-id: 400a56b453a85939f8428b378e42e5238cc241e9
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D18801364

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in ae807e2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants