Unverified Commit 68fbd3c6 authored by Philip Meier's avatar Philip Meier Committed by GitHub
Browse files

fix weight docs (#7993)


Co-authored-by: default avatarNicolas Hug <nh.nicolas.hug@gmail.com>
parent 7ba3d7e2
......@@ -371,7 +371,7 @@ def inject_weight_metadata(app, what, name, obj, options, lines):
used within the autoclass directive.
"""
if getattr(obj, ".__name__", "").endswith(("_Weights", "_QuantizedWeights")):
if getattr(obj, "__name__", "").endswith(("_Weights", "_QuantizedWeights")):
if len(obj) == 0:
lines[:] = ["There are no available pre-trained weights."]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment