longyuxi / sphinx-autosummary-debug

0 stars 0 forks source link

Problem solved? #1

Open JackSSK opened 1 year ago

JackSSK commented 1 year ago

Hi, I am running into exactly same problem you posted on solveforum and wondering whether you solved this problem or not. If solved, could you kindly tell me what solution is working for the nn.Module training attribute issue? Many thanks!

longyuxi commented 1 year ago

I unfortunately have not solved this issue yet either.

peytondmurray commented 1 year ago

Hey all, I'm debugging the same issue on a different project. I was able to get this to build by adding torch to autodoc_mock_imports. Here's what happens when I try to build with the current commit on main:

image

After adding

autodoc_mock_imports = ['torch']

to conf.py:

image

@longyuxi @JackSSK can either of you confirm the fix here?

longyuxi commented 1 year ago

@peytondmurray That worked for me! Thank you.