From 7095647db686299d45207734a884f660837e8b49 Mon Sep 17 00:00:00 2001 From: Richard Zou Date: Thu, 17 Mar 2022 17:18:39 -0400 Subject: [PATCH] [functorch] Fix some lint issues (pytorch/functorch#606) --- functorch/COMPILE_README.md | 2 +- functorch/docs/source/conf.py | 18 ++++++++++-------- functorch/examples/dp_cifar10/README.md | 2 +- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/functorch/COMPILE_README.md b/functorch/COMPILE_README.md index 17c3b90d60d644..964cda6fbec0ee 100644 --- a/functorch/COMPILE_README.md +++ b/functorch/COMPILE_README.md @@ -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. \ No newline at end of file +You can use this [tutorial](https://pytorch.org/functorch/nightly/notebooks/aot_autograd_optimizations.html) to play with AOT Autograd. diff --git a/functorch/docs/source/conf.py b/functorch/docs/source/conf.py index 6b35666e144098..c73012793908b7 100644 --- a/functorch/docs/source/conf.py +++ b/functorch/docs/source/conf.py @@ -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. diff --git a/functorch/examples/dp_cifar10/README.md b/functorch/examples/dp_cifar10/README.md index 49a4a7301fcce1..dbf65c45dae8a0 100644 --- a/functorch/examples/dp_cifar10/README.md +++ b/functorch/examples/dp_cifar10/README.md @@ -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 \ No newline at end of file +These examples use Opacus version 1.0.1 and torchvision 0.11.2