Skip to content

Commit 349c66d

Browse files
NicolasHugpmeier
andauthored
[Cherry pick] fix weight docs (#7993) (#7994)
Co-authored-by: Philip Meier <[email protected]>
1 parent fbb4cc5 commit 349c66d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
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)