Skip to content

Commit 4a900e8

Browse files
YosuaMichaelfacebook-github-bot
authored andcommitted
[fbsync] Models doc revamp: final cleanup (#6049)
Summary: * Remove models.rst * Remove '- New' * Put back torchhub section where it originally was Reviewed By: NicolasHug Differential Revision: D36760929 fbshipit-source-id: f31049101a6bdab43bef8a403c3fff5954226d8c
1 parent c8f7b97 commit 4a900e8

File tree

5 files changed

+355
-1224
lines changed

5 files changed

+355
-1224
lines changed

docs/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ ifneq ($(EXAMPLES_PATTERN),)
66
endif
77

88
# You can set these variables from the command line.
9-
# TODO: Once the models doc revamp is done, set back the -W option to raise
10-
# errors on warnings. See https://github.com/pytorch/vision/pull/5821#discussion_r850500693
11-
SPHINXOPTS = -j auto $(EXAMPLES_PATTERN_OPTS)
9+
SPHINXOPTS = -W -j auto $(EXAMPLES_PATTERN_OPTS)
1210
SPHINXBUILD = sphinx-build
1311
SPHINXPROJ = torchvision
1412
SOURCEDIR = source

docs/source/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,6 @@ def inject_weight_metadata(app, what, name, obj, options, lines):
347347
metrics = meta.pop("_metrics")
348348
for dataset, dataset_metrics in metrics.items():
349349
for metric_name, metric_value in dataset_metrics.items():
350-
metric_name = metric_name.replace("_", "-")
351350
table.append((f"{metric_name} (on {dataset})", str(metric_value)))
352351

353352
for k, v in meta.items():

docs/source/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ architectures, and common image transformations for computer vision.
3838
ops
3939
io
4040
feature_extraction
41-
models_new
4241

4342
.. toctree::
4443
:maxdepth: 1

0 commit comments

Comments
 (0)