Skip to content

Commit bdc7c67

Browse files
authored
Merge branch 'main' into models/new_resnet_weights
2 parents 87eb945 + 5b61144 commit bdc7c67

32 files changed

+809
-550
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.circleci/config.yml.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ jobs:
190190
- run:
191191
name: Required lint modifications
192192
when: on_fail
193-
command: git diff
193+
command: git --no-pager diff
194194

195195
python_type_check:
196196
docker:
@@ -274,7 +274,7 @@ jobs:
274274
command: pip install --user --progress-bar off --no-build-isolation .
275275
- run:
276276
name: Install test utilities
277-
command: pip install --user --progress-bar=off pytest
277+
command: pip install --user --progress-bar=off pytest pytest-mock
278278
- run:
279279
name: Run tests
280280
command: pytest test/test_prototype_*.py

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ docs/build
1414
# sphinx-gallery
1515
docs/source/auto_examples/
1616
docs/source/gen_modules/
17+
docs/source/generated/
1718
# pytorch-sphinx-theme gets installed here
1819
docs/src
1920

docs/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ clean:
3232
rm -rf $(BUILDDIR)/*
3333
rm -rf $(SOURCEDIR)/auto_examples/ # sphinx-gallery
3434
rm -rf $(SOURCEDIR)/gen_modules/ # sphinx-gallery
35+
rm -rf $(SOURCEDIR)/generated/ # autosummary
3536

3637
.PHONY: help Makefile docset
3738

docs/source/_templates/class.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. role:: hidden
2+
:class: hidden-section
3+
.. currentmodule:: {{ module }}
4+
5+
6+
{{ name | underline}}
7+
8+
.. autoclass:: {{ name }}
9+
:members:
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.. role:: hidden
2+
:class: hidden-section
3+
.. currentmodule:: {{ module }}
4+
5+
6+
{{ name | underline}}
7+
8+
.. autoclass:: {{ name }}
9+
:members:
10+
__getitem__,
11+
{% if "category_name" in methods %} category_name {% endif %}
12+
:special-members:

docs/source/_templates/function.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.. role:: hidden
2+
:class: hidden-section
3+
.. currentmodule:: {{ module }}
4+
5+
6+
{{ name | underline}}
7+
8+
.. autofunction:: {{ name }}

docs/source/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@
144144
htmlhelp_basename = "PyTorchdoc"
145145

146146

147+
autosummary_generate = True
148+
149+
147150
# -- Options for LaTeX output ---------------------------------------------
148151
latex_elements = {
149152
# The paper size ('letterpaper' or 'a4paper').

0 commit comments

Comments
 (0)