Skip to content

Commit 614ad5c

Browse files
committed
fix weight docs
1 parent 9ba2158 commit 614ad5c

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)