Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Sphinx is unable to access some MXNet ONNX module functions #12318

Closed
aaronmarkham opened this issue Aug 23, 2018 · 4 comments · Fixed by #13259
Closed

Sphinx is unable to access some MXNet ONNX module functions #12318

aaronmarkham opened this issue Aug 23, 2018 · 4 comments · Fixed by #13259

Comments

@aaronmarkham
Copy link
Contributor

aaronmarkham commented Aug 23, 2018

This causes Sphinx to fail processing the API docs when shorthand references are used. I used a workaround in #12317 to just reference the functions the long way.

This means the reference is:
mxnet.contrib.onnx.onnx2mx.import_model.import_model
When it could be:
mxnet.contrib.onnx.import_model

2018-08-23_15-08-55

But the shorthand route doesn't work.

Example:

ubuntu@ip-172-31-66-78:~/incubator-mxnet/docs$ python -c "import mxnet.contrib.onnx.onnx2mx"
ubuntu@ip-172-31-66-78:~/incubator-mxnet/docs$ python -c "import mxnet.contrib.onnx.onnx2mx.import_model"
ubuntu@ip-172-31-66-78:~/incubator-mxnet/docs$ python -c "import mxnet.contrib.onnx.import_model"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named import_model

@Roshrini

@ankkhedia
Copy link
Contributor

@mxnet-label-bot [Doc, Website]

@aaronmarkham
Copy link
Contributor Author

Hi @marcoabreu - this is more of a Python issue on the engineering side than something that can be fixed from within the website or docs systems. I might even label it a bug.

@ankkhedia
Copy link
Contributor

@sandeep-krishnamurthy Could you please label above as [Python, Build, Bug] and remove [Doc, Website]

@vdantu
Copy link
Contributor

vdantu commented Nov 10, 2018

@aaronmarkham : What needs to be done here for the docs?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants