Skip to content

Commit 68fbd3c

Browse files
pmeierNicolasHug
andauthored
fix weight docs (pytorch#7993)
Co-authored-by: Nicolas Hug <nh.nicolas.hug@gmail.com>
1 parent 7ba3d7e commit 68fbd3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ def inject_weight_metadata(app, what, name, obj, options, lines):
371371
used within the autoclass directive.
372372
"""
373373

374-
if getattr(obj, ".__name__", "").endswith(("_Weights", "_QuantizedWeights")):
374+
if getattr(obj, "__name__", "").endswith(("_Weights", "_QuantizedWeights")):
375375

376376
if len(obj) == 0:
377377
lines[:] = ["There are no available pre-trained weights."]

0 commit comments

Comments
 (0)