Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
68fbd3c6
Unverified
Commit
68fbd3c6
authored
Sep 25, 2023
by
Philip Meier
Committed by
GitHub
Sep 25, 2023
Browse files
fix weight docs (#7993)
Co-authored-by:
Nicolas Hug
<
nh.nicolas.hug@gmail.com
>
parent
7ba3d7e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/source/conf.py
docs/source/conf.py
+1
-1
No files found.
docs/source/conf.py
View file @
68fbd3c6
...
@@ -371,7 +371,7 @@ def inject_weight_metadata(app, what, name, obj, options, lines):
...
@@ -371,7 +371,7 @@ def inject_weight_metadata(app, what, name, obj, options, lines):
used within the autoclass directive.
used within the autoclass directive.
"""
"""
if
getattr
(
obj
,
"
.
__name__"
,
""
).
endswith
((
"_Weights"
,
"_QuantizedWeights"
)):
if
getattr
(
obj
,
"__name__"
,
""
).
endswith
((
"_Weights"
,
"_QuantizedWeights"
)):
if
len
(
obj
)
==
0
:
if
len
(
obj
)
==
0
:
lines
[:]
=
[
"There are no available pre-trained weights."
]
lines
[:]
=
[
"There are no available pre-trained weights."
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment