Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tensorflow][Frontend] Sigmoid is not supported #1367

Closed
solderzzc opened this issue Jul 1, 2018 · 2 comments
Closed

[Tensorflow][Frontend] Sigmoid is not supported #1367

solderzzc opened this issue Jul 1, 2018 · 2 comments

Comments

@solderzzc
Copy link

The sigmoid activation is not supported in tensorflow nnvm frontend:

  File "convert_net_1.py", line 47, in <module>
    nnvm_net, nnvm_params = nnvm.frontend.from_tensorflow(graph_def)
  File "/root/.local/lib/python2.7/site-packages/nnvm-0.8.0-py2.7.egg/nnvm/frontend/tensorflow.py", line 787, in from_tensorflow
    sym, params = g.from_tensorflow(graph)
  File "/root/.local/lib/python2.7/site-packages/nnvm-0.8.0-py2.7.egg/nnvm/frontend/tensorflow.py", line 640, in from_tensorflow
    op = self._convert_operator(node.op, inputs, attr)
  File "/root/.local/lib/python2.7/site-packages/nnvm-0.8.0-py2.7.egg/nnvm/frontend/tensorflow.py", line 754, in _convert_operator
    raise NotImplementedError("Operator {} not implemented.".format(op_name))
NotImplementedError: Operator Sigmoid not implemented.
@solderzzc solderzzc changed the title [NNVM][FRONTEND][TENSORFLOW] Sigmoid is not supported [Tensorflow][Frontend] Sigmoid is not supported Jul 1, 2018
srkreddy1238 added a commit to srkreddy1238/tvm that referenced this issue Jul 2, 2018
srkreddy1238 added a commit to srkreddy1238/tvm that referenced this issue Jul 3, 2018
@solderzzc
Copy link
Author

solderzzc commented Jul 4, 2018

I pulled this patch and had another issue, I'm not sure if still relate with Sigmoid op.

Loading
Loading Done
Compiling
Traceback (most recent call last):
  File "convert_net_1.py", line 52, in <module>
    convert(nnvm_net, nnvm_params, (1, 3, 112, 112) ,'float32','llvm --system-lib -target=aarch64-linux-gnu -mattr=+neon')
  File "convert_net_1.py", line 24, in convert
    dtype=dtype, target_host=target_host)
  File "/root/.local/lib/python2.7/site-packages/nnvm-0.8.0-py2.7.egg/nnvm/compiler/build_module.py", line 294, in build
    graph = graph.apply("GraphFusePartition").apply("GraphFuseCompile")
  File "/root/.local/lib/python2.7/site-packages/nnvm-0.8.0-py2.7.egg/nnvm/graph.py", line 234, in apply
    check_call(_LIB.NNGraphApplyPasses(self.handle, npass, cpass, ctypes.byref(ghandle)))
  File "/root/.local/lib/python2.7/site-packages/nnvm-0.8.0-py2.7.egg/nnvm/_base.py", line 75, in check_call
    raise NNVMError(py_str(_LIB.NNGetLastError()))
nnvm._base.NNVMError: [02:23:46] src/top/nn/nn.cc:612: Check failed: pad_width.ndim() == inputs[0]->shape.size() && pad_width[0].ndim() == 2 Illegal pad_width

Stack trace returned 10 entries:
[bt] (0) /root/.local/lib/python2.7/site-packages/tvm-0.4.0-py2.7-linux-x86_64.egg/tvm/libtvm.so(dmlc::StackTrace[abi:cxx11]()+0x40) [0x7f8b398b4b50]
[bt] (1) /root/.local/lib/python2.7/site-packages/tvm-0.4.0-py2.7-linux-x86_64.egg/tvm/libtvm.so(dmlc::LogMessageFatal::~LogMessageFatal()+0x29) [0x7f8b398b5359]
[bt] (2) /root/.local/lib/python2.7/site-packages/nnvm-0.8.0-py2.7.egg/nnvm/libnnvm_compiler.so(+0xeb11d) [0x7f8b3826611d]
[bt] (3) /root/.local/lib/python2.7/site-packages/nnvm-0.8.0-py2.7.egg/nnvm/libnnvm_compiler.so(+0xeb62f) [0x7f8b3826662f]
[bt] (4) /root/.local/lib/python2.7/site-packages/nnvm-0.8.0-py2.7.egg/nnvm/libnnvm_compiler.so(nnvm::compiler::CompileEngine::GetScheduleArgs(nnvm::Graph, tvm::Array<tvm::Tensor, void> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, tvm::Array<tvm::Tensor, void>*)+0x1479) [0x7f8b38323069]
[bt] (5) /root/.local/lib/python2.7/site-packages/nnvm-0.8.0-py2.7.egg/nnvm/libnnvm_compiler.so(nnvm::compiler::CompileEngine::DoLower(nnvm::Graph, tvm::Array<tvm::Tensor, void> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)+0xee) [0x7f8b38324dfe]
[bt] (6) /root/.local/lib/python2.7/site-packages/nnvm-0.8.0-py2.7.egg/nnvm/libnnvm_compiler.so(nnvm::compiler::CompileEngine::Lower(nnvm::Graph, tvm::Array<tvm::Tensor, void> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)+0x186) [0x7f8b38325c66]
[bt] (7) /root/.local/lib/python2.7/site-packages/nnvm-0.8.0-py2.7.egg/nnvm/libnnvm_compiler.so(nnvm::compiler::GraphLower(nnvm::Graph, tvm::Array<tvm::Tensor, void> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)+0x5a) [0x7f8b38319a1a]
[bt] (8) /root/.local/lib/python2.7/site-packages/nnvm-0.8.0-py2.7.egg/nnvm/libnnvm_compiler.so(nnvm::compiler::GraphFuseCompile(nnvm::Graph)+0x1061) [0x7f8b3832d3d1]
[bt] (9) /root/.local/lib/python2.7/site-packages/nnvm-0.8.0-py2.7.egg/nnvm/libnnvm_compiler.so(std::_Function_handler<nnvm::Graph (nnvm::Graph), nnvm::Graph (*)(nnvm::Graph)>::_M_invoke(std::_Any_data const&, nnvm::Graph&&)+0xf8) [0x7f8b383165a8]

@solderzzc
Copy link
Author

It isn't. Let me close it.

tqchen pushed a commit to tqchen/tvm that referenced this issue Jul 6, 2018
mnuyens pushed a commit to mnuyens/tvm that referenced this issue Jul 10, 2018
sergei-mironov pushed a commit to sergei-mironov/tvm that referenced this issue Aug 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant