fastai / fastai2

Temporary home for fastai v2 while it's being developed
https://dev.fast.ai
Apache License 2.0
645 stars 234 forks source link

Arguments for GradScaler #513

Closed richarddwang closed 4 years ago

richarddwang commented 4 years ago

So I can pass arguments to torch.cuda.amp.GradScaler For example, learn.to_native_fp16(init_scale=2048., growth_interval=10**4)

review-notebook-app[bot] commented 4 years ago

Check out this pull request on  ReviewNB

Review Jupyter notebook visual diffs & provide feedback on notebooks.


Powered by ReviewNB

github-actions[bot] commented 4 years ago

👋 @richarddwang! We detected notebooks that are not stripped or that are out of sync with the library in this PR.

You need to run nbdev_install_git_hooks before submitting a pull request! For more information, see the CONTRIBUTING guide.

You can see the logs of the tests that triggered this message in run 202538971.

richarddwang commented 4 years ago

I originally pass the test. But I messed up with doing git rebase upstream/master and git push -f origin fp16 and git status give me

branch fp16
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

    modified:   docs (new commit)
    modified:   nbs/examples/migrating_ignite.ipynb

no changes added to commit (use "git add" and/or "git commit -a")

and I don't know how to do ...

hamelsmu commented 4 years ago

@richarddwang can you do git add nbs/examples/migrating_ignite.ipynb; git commit -m'modified ignite notebook'; git push ?

github-actions[bot] commented 4 years ago

👋 @richarddwang! We detected notebooks that are not stripped or that are out of sync with the library in this PR.

You need to run nbdev_install_git_hooks before submitting a pull request! For more information, see the CONTRIBUTING guide.

You can see the logs of the tests that triggered this message in run 202641680.