Skip to content

Commit

Permalink
add mockimport
Browse files Browse the repository at this point in the history
  • Loading branch information
KindXiaoming committed Apr 29, 2024
1 parent 62d0c3b commit 67b80da
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ def skip(app, what, name, obj, would_skip, options):
def setup(app):
app.connect("autodoc-skip-member", skip)

autodoc_mock_imports = ["sphinx_rtd_theme",
"sphinx.ext.autodoc",
"sphinx.ext.autosectionlabel"
autodoc_mock_imports = ["torch"
]


Expand Down

0 comments on commit 67b80da

Please sign in to comment.