[functorch] Fix some lint issues (pytorch/functorch#606)

This commit is contained in:
Richard Zou
2022-03-17 17:18:39 -04:00
committed by Jon Janzen
parent 0b5385c8cc
commit 7095647db6
3 changed files with 12 additions and 10 deletions

View File

@ -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.

View File

@ -105,16 +105,18 @@ release = 'nightly'
# 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.

View File

@ -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