Skip to content

Commit bfafa89

Browse files
NicolasHugfacebook-github-bot
authored andcommitted
[fbsync] fix weight docs (#7993)
Summary: Co-authored-by: Nicolas Hug <[email protected]> Reviewed By: matteobettini Differential Revision: D49600766 fbshipit-source-id: 8853fd0b39e366bf34a4929b012f5e6751312de8
1 parent c97421c commit bfafa89

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)