Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Support losses with learned parameters #394

Closed
wants to merge 1 commit into from

Conversation

edpizzi
Copy link
Contributor

@edpizzi edpizzi commented Feb 13, 2020

Summary:
This adds support for stateful losses with learned parameters. Examples include the NormFace / SphereFace / CosFace / ArcFace family of losses, or noise-contrastive estimation losses that learn partition parameters.

Loss parameters are added to the optimizer, and saved to checkpoints. Losses with parameters are wrapped in a separate DistributedDataParallel instance to synchronize parameter initialization, and gradients, across nodes.

Differential Revision: D19717056

Summary:
This adds support for stateful losses with learned parameters. Examples include the NormFace / SphereFace / CosFace / ArcFace family of losses, or noise-contrastive estimation losses that learn partition parameters.

Loss parameters are added to the optimizer, and saved to checkpoints. Losses with parameters are wrapped in a separate DistributedDataParallel instance to synchronize parameter initialization, and gradients, across nodes.

Differential Revision: D19717056

fbshipit-source-id: bc4eec5e4d3af6072943b963ad4f8d904e7c936c
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Feb 13, 2020
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 80b7456.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants