https://github.com/facebookresearch/pythia
Revision 6777ca4ff72d371cb2a5c59d65b1a13d183f0c88 authored by Jie Lei 雷杰 on 08 June 2021, 17:43:36 UTC, committed by Facebook GitHub Bot on 08 June 2021, 17:44:23 UTC
Summary: "-1e9" induces "RuntimeError: value cannot be converted to type at::Half without overflow:" when fp16=true, replace it with "-10000.0" Tested locally Thanks for your contribution! If you're sending a large PR (e.g., >50 lines), please open an issue first about the feature/bug, and indicate how you want to contribute. Use [contributing guidelines](https://github.com/facebookresearch/mmf/tree/master/.github/CONTRIBUTING.md) before opening up the PR to follow MMF style guidelines. Pull Request resolved: https://github.com/facebookresearch/mmf/pull/962 Reviewed By: vedanuj Differential Revision: D28963671 Pulled By: jayleicn fbshipit-source-id: f8dcdd28eeccc9d2b19af4cd17710c869feb0eea
1 parent 5265e1c
Tip revision: 6777ca4ff72d371cb2a5c59d65b1a13d183f0c88 authored by Jie Lei 雷杰 on 08 June 2021, 17:43:36 UTC
fix fp16 overflow issue (#962)
fix fp16 overflow issue (#962)
Tip revision: 6777ca4
File | Mode | Size |
---|---|---|
.circleci | ||
.github | ||
docs | ||
mmf | ||
mmf_cli | ||
projects | ||
tests | ||
tools | ||
website | ||
.editorconfig | -rw-r--r-- | 191 bytes |
.flake8 | -rw-r--r-- | 187 bytes |
.gitignore | -rw-r--r-- | 267 bytes |
.pre-commit-config.yaml | -rw-r--r-- | 1.1 KB |
LICENSE | -rw-r--r-- | 1.5 KB |
MANIFEST.in | -rw-r--r-- | 130 bytes |
NOTICES | -rw-r--r-- | 4.5 KB |
README.md | -rw-r--r-- | 2.2 KB |
pyproject.toml | -rw-r--r-- | 958 bytes |
requirements.txt | -rw-r--r-- | 475 bytes |
setup.py | -rw-r--r-- | 5.1 KB |
Computing file changes ...