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

unify FP16&FP32 API #1006

Conversation

chenyangyu1988
Copy link
Contributor

Summary:

  1. use optimizer.backward() and optimizer.clip_grad_norm() to replace existing precision.backward and clip_grad_norm
  2. remove underscore for FP16_ENABLED, OPT_LEVEL, DELAY_UNSCALE

Differential Revision: D17535126

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Sep 26, 2019
Summary:
Pull Request resolved: facebookresearch#1006

1. use optimizer.backward() and optimizer.clip_grad_norm() to replace existing precision.backward and clip_grad_norm
2. remove underscore for FP16_ENABLED, OPT_LEVEL, DELAY_UNSCALE

Differential Revision: D17535126

fbshipit-source-id: 6a34ac59170816a97b018b3de9aed4d34fb19ebb
chenyangyu1988 added a commit to chenyangyu1988/pytext that referenced this pull request Sep 30, 2019
Summary:
Pull Request resolved: facebookresearch#1006

1. use optimizer.backward() and optimizer.clip_grad_norm() to replace existing precision.backward and clip_grad_norm
2. remove underscore for FP16_ENABLED, OPT_LEVEL, DELAY_UNSCALE

Differential Revision: D17535126

fbshipit-source-id: 3f84e1b72bef2a17ea4cc0d9199886c59b825de0
@chenyangyu1988 chenyangyu1988 force-pushed the export-D17535126 branch 2 times, most recently from e688b43 to 414a3a6 Compare September 30, 2019 17:43
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 972c23e.

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. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants