You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/01/13 18:33:05 UTC
[GitHub] [incubator-mxnet] guanxinq opened a new issue #17285: Graph
Partition API Test Error
guanxinq opened a new issue #17285: Graph Partition API Test Error
URL: https://github.com/apache/incubator-mxnet/issues/17285
## Description
PR https://github.com/apache/incubator-mxnet/pull/15886/files#diff-962e4e83b570943c087e477058485e25 added 4 tests for graph partitioning given a backend. However, these tests cannot succeed if run them separately.
### Error Message
======================================================================
ERROR: test_subgraph_op.test_subgraph_exe
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ubuntu/.local/lib/python3.6/site-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/home/ubuntu/fortest1.6/incubator-mxnet/tests/python/unittest/test_subgraph_op.py", line 362, in test_subgraph_exe
_test_subgraph_exe('default')
File "/home/ubuntu/fortest1.6/incubator-mxnet/tests/python/unittest/test_subgraph_op.py", line 353, in _test_subgraph_exe
test_network_structure_1(subgraph_backend)
File "/home/ubuntu/fortest1.6/incubator-mxnet/tests/python/unittest/test_subgraph_op.py", line 287, in test_network_structure_1
check_subgraph_exe(out, subgraph_backend, ['Convolution'])
File "/home/ubuntu/fortest1.6/incubator-mxnet/tests/python/unittest/test_subgraph_op.py", line 276, in check_subgraph_exe
_check_subgraph_exe5(sym, subgraph_backend, op_names)
File "/home/ubuntu/fortest1.6/incubator-mxnet/tests/python/unittest/test_subgraph_op.py", line 179, in _check_subgraph_exe5
part_sym = sym.optimize_for(subgraph_backend)
File "/home/ubuntu/fortest1.6/incubator-mxnet/python/mxnet/symbol/symbol.py", line 1499, in optimize_for
c_str_array(val_list)))
File "/home/ubuntu/fortest1.6/incubator-mxnet/python/mxnet/base.py", line 255, in check_call
raise MXNetError(py_str(_LIB.MXGetLastError()))
mxnet.base.MXNetError: [18:29:40] /home/ubuntu/fortest1.6/incubator-mxnet/src/operator/subgraph/./subgraph_property.h:374: Check failed: it != attrs_.end(): Cannot find attribute op_names in SubgraphProperty
Stack trace:
[bt] (0) /home/ubuntu/fortest1.6/incubator-mxnet/python/mxnet/../../build/libmxnet.so(mxnet::op::DefaultSubgraphProperty::CreateSubgraphSelector() const+0x86d) [0x7fc66881361d]
[bt] (1) /home/ubuntu/fortest1.6/incubator-mxnet/python/mxnet/../../build/libmxnet.so(mxnet::op::sg::FindSubgraphs(nnvm::Graph*, mxnet::op::SubgraphProperty const&, std::vector<std::shared_ptr<mxnet::op::BiDirectedNode>, std::allocator<std::shared_ptr<mxnet::op::BiDirectedNode> > > const&, std::vector<std::vector<mxnet::op::BiDirectedNode*, std::allocator<mxnet::op::BiDirectedNode*> >, std::allocator<std::vector<mxnet::op::BiDirectedNode*, std::allocator<mxnet::op::BiDirectedNode*> > > >*, std::vector<std::shared_ptr<mxnet::op::SubgraphSelectorV2>, std::allocator<std::shared_ptr<mxnet::op::SubgraphSelectorV2> > >*)+0x468) [0x7fc668808f78]
[bt] (2) /home/ubuntu/fortest1.6/incubator-mxnet/python/mxnet/../../build/libmxnet.so(mxnet::op::BuildSubgraph(nnvm::Graph&&)+0x30b) [0x7fc66880ab7b]
[bt] (3) /home/ubuntu/fortest1.6/incubator-mxnet/python/mxnet/../../build/libmxnet.so(std::_Function_handler<nnvm::Graph (nnvm::Graph), nnvm::Graph (*)(nnvm::Graph&&)>::_M_invoke(std::_Any_data const&, nnvm::Graph&&)+0x20) [0x7fc6671526f0]
[bt] (4) /home/ubuntu/fortest1.6/incubator-mxnet/python/mxnet/../../build/libmxnet.so(nnvm::ApplyPasses(nnvm::Graph, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)+0xee5) [0x7fc669813625]
[bt] (5) /home/ubuntu/fortest1.6/incubator-mxnet/python/mxnet/../../build/libmxnet.so(nnvm::ApplyPass(nnvm::Graph, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x213) [0x7fc666e71063]
[bt] (6) /home/ubuntu/fortest1.6/incubator-mxnet/python/mxnet/../../build/libmxnet.so(MXOptimizeForBackend+0x565) [0x7fc666e660a5]
[bt] (7) /usr/lib/x86_64-linux-gnu/libffi.so.6(ffi_call_unix64+0x4c) [0x7fc6892fbdae]
[bt] (8) /usr/lib/x86_64-linux-gnu/libffi.so.6(ffi_call+0x22f) [0x7fc6892fb71f]
## To Reproduce
1. Disable line 272-275 in /python/unittest/test_subgraph_op.py.
2. Run nosetests --nocapture tests/python/unittest/test_subgraph_op.py
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-mxnet] apeforest closed issue #17285: Graph Partition
API Test Error
Posted by GitBox <gi...@apache.org>.
apeforest closed issue #17285: Graph Partition API Test Error
URL: https://github.com/apache/incubator-mxnet/issues/17285
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services