Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
ef9fb4b8
Commit
ef9fb4b8
authored
Nov 22, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bring back decorate __init__ in docs
parent
aaf62f2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
docs/conf.py
docs/conf.py
+6
-1
No files found.
docs/conf.py
View file @
ef9fb4b8
...
@@ -30,7 +30,7 @@ MOCK_MODULES = ['scipy', 'tabulate',
...
@@ -30,7 +30,7 @@ MOCK_MODULES = ['scipy', 'tabulate',
'cv2'
,
'scipy.io'
,
'dill'
,
'zmq'
,
'subprocess32'
,
'lmdb'
,
'cv2'
,
'scipy.io'
,
'dill'
,
'zmq'
,
'subprocess32'
,
'lmdb'
,
'tornado.concurrent'
,
'tornado'
,
'tornado.concurrent'
,
'tornado'
,
'msgpack'
,
'msgpack_numpy'
,
'msgpack'
,
'msgpack_numpy'
,
'gym'
,
'functools32'
]
'gym'
,
'functools32'
,
'horovod.tensorflow'
]
for
mod_name
in
MOCK_MODULES
:
for
mod_name
in
MOCK_MODULES
:
sys
.
modules
[
mod_name
]
=
mock
.
Mock
(
name
=
mod_name
)
sys
.
modules
[
mod_name
]
=
mock
.
Mock
(
name
=
mod_name
)
sys
.
modules
[
'cv2'
]
.
__version__
=
'3.2.1'
# fake version
sys
.
modules
[
'cv2'
]
.
__version__
=
'3.2.1'
# fake version
...
@@ -353,6 +353,11 @@ def process_signature(app, what, name, obj, options, signature,
...
@@ -353,6 +353,11 @@ def process_signature(app, what, name, obj, options, signature,
return
signature
,
return_annotation
return
signature
,
return_annotation
def
autodoc_skip_member
(
app
,
what
,
name
,
obj
,
skip
,
options
):
def
autodoc_skip_member
(
app
,
what
,
name
,
obj
,
skip
,
options
):
if
name
==
'__init__'
:
if
obj
.
__doc__
and
skip
:
# include_init_with_doc doesn't work well for decorated init
# https://github.com/sphinx-doc/sphinx/issues/4258
return
False
if
name
in
[
if
name
in
[
'MultiGPUTrainerBase'
,
'MultiGPUTrainerBase'
,
'FeedfreeInferenceRunner'
,
'FeedfreeInferenceRunner'
,
...
...
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