DNXie opened a new issue #18991: URL: https://github.com/apache/incubator-mxnet/issues/18991
## Description The following 4 APIs don't accept the parameter `graph` as stated in the Parameter section. - `mxnet.contrib.ndarray.dgl_subgraph`: https://mxnet.apache.org/versions/1.6/api/python/docs/api/contrib/ndarray/index.html#mxnet.contrib.ndarray.dgl_subgraph - `mxnet.contrib.symbol.dgl_subgraph`: https://mxnet.apache.org/versions/1.6/api/python/docs/api/contrib/symbol/index.html#mxnet.contrib.symbol.dgl_subgraph - `mxnet.ndarray.contrib.dgl_subgraph`: https://mxnet.apache.org/versions/1.6/api/python/docs/api/ndarray/contrib/index.html#mxnet.ndarray.contrib.dgl_subgraph - `mxnet.symbol.contrib.dgl_subgraph`: https://mxnet.apache.org/versions/1.6/api/python/docs/api/symbol/contrib/index.html#mxnet.symbol.contrib.dgl_subgraph ### Error Message (Paste the complete error message. Please also include stack trace by setting environment variable `DMLC_LOG_STACK_TRACE_DEPTH=10` before running your script.) ~~~python terminate called after throwing an instance of 'dmlc::ParamError' what(): value 0 for Parameter num_args should be greater equal to 2 num_args: Number of input arguments, including all symbol inputs., in operator _contrib_dgl_subgraph(name="", num_args="0", data=" [0. 1. 2.] <NDArray 3 @cpu(0)>", return_mapping="True", graph=" [[1. 0. 0. 2.] [3. 0. 4. 0.] [0. 5. 0. 0.] [0. 6. 7. 0.]] <NDArray 4x4 @cpu(0)>") Aborted (core dumped) ~~~ ## To Reproduce (If you developed your own code, please provide a short script that reproduces the error. For existing examples, please provide link.) ~~~python import mxnet x=[[1, 0, 0, 2], [3, 0, 4, 0], [0, 5, 0, 0], [0, 6, 7, 0]] v = [0, 1, 2] x=mxnet.nd.array(x) v=mxnet.nd.array(v) mxnet.symbol.contrib.dgl_subgraph(graph=x, data=v, return_mapping=True) ~~~ ## Environment We recommend using our script for collecting the diagnositc information. Run the following command and paste the outputs below: ``` curl --retry 10 -s https://raw.githubusercontent.com/dmlc/gluon-nlp/master/tools/diagnose.py | python # paste outputs here ``` OS: ubuntu 18.04 Python: 3.7.6 pip: 20.0.2 numpy: 1.18.5 mxnet: 1.6.0 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
