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

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

@aaronmarkham

Description

@aaronmarkham

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions