Skip to content

Commit

Permalink
[functorch] Fix some lint issues (pytorch/functorch#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
zou3519 authored and bigfootjon committed Jul 21, 2022
1 parent 0b5385c commit 7095647
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion functorch/COMPILE_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ aot_function(f, ts_compiler, ts_compiler)(torch.randn(3, requires_grad=True))
* Min-cut [recomputation](https://dev-discuss.pytorch.org/t/min-cut-optimal-recomputation-i-e-activation-checkpointing-with-aotautograd/467) with AOT Autograd.

## Tutorials
You can use this [tutorial](https://pytorch.org/functorch/nightly/notebooks/aot_autograd_optimizations.html) to play with AOT Autograd.
You can use this [tutorial](https://pytorch.org/functorch/nightly/notebooks/aot_autograd_optimizations.html) to play with AOT Autograd.
18 changes: 10 additions & 8 deletions functorch/docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,18 @@

# Customized html_title here.
# Default is " ".join(project, release, "documentation") if not set
# TODO: I don't know if this flag works, please check before using it
if RELEASE:
raise RuntimeError('NYI')
# remove hash (start with 'a') from version number if any
version_end = torch_version.find('a')
if version_end == -1:
html_title = " ".join((project, torch_version, "documentation"))
version = torch_version
else:
html_title = " ".join((project, torch_version[:version_end], "documentation"))
version = torch_version[:version_end]
release = version
# version_end = functorch_version.find('a')
# if version_end == -1:
# html_title = " ".join((project, functorch_version, "documentation"))
# version = functorch_version
# else:
# html_title = " ".join((project, functorch_version[:version_end], "documentation"))
# version = functorch_version[:version_end]
# release = version

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion functorch/examples/dp_cifar10/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ As a caveat, the transforms version may not be computing the exact same values a
No verification has been done yet for this.

### Requirements
These examples use Opacus version 1.0.1 and torchvision 0.11.2
These examples use Opacus version 1.0.1 and torchvision 0.11.2

0 comments on commit 7095647

Please sign in to comment.