GithubHelp home page GithubHelp logo

Converting torch.RNN to TVM Relay about tvm HOT 4 OPEN

kaimast avatar kaimast commented on September 1, 2024
Converting torch.RNN to TVM Relay

from tvm.

Comments (4)

kaimast avatar kaimast commented on September 1, 2024

Oh d'uh. RNN also takes a regular tensor as input...

However, now I get this error. Can I not convert an entire neural network into a relay? Do i have to do it layer by layer?

RuntimeError: This program cannot be exported as a single Relay expression. (operator() at /home/kai/dev/torch-tvm/torch_tvm/register.
cpp:87)
frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const
&) + 0x65 (0x7f6cde810455 in /usr/local/lib/python3.7/dist-packages/torch/lib/libc10.so)                                             
frame #1: <unknown function> + 0x29e4f (0x7f6cb4ccfe4f in /home/kai/.local/lib/python3.7/site-packages/torch_tvm/_torch_tvm.cpython-37
m-x86_64-linux-gnu.so)
frame #2: <unknown function> + 0x302a7 (0x7f6cb4cd62a7 in /home/kai/.local/lib/python3.7/site-packages/torch_tvm/_torch_tvm.cpython-37
m-x86_64-linux-gnu.so)
frame #3: _PyMethodDef_RawFastCallKeywords + 0x224 (0x5d8014 in /usr/bin/python3)                                                    
frame #4: _PyEval_EvalFrameDefault + 0x4293 (0x551fd3 in /usr/bin/python3)                                                           
frame #5: _PyFunction_FastCallKeywords + 0x18c (0x5d896c in /usr/bin/python3)                                                        
frame #6: /usr/bin/python3() [0x54af20]
frame #7: _PyEval_EvalFrameDefault + 0x4457 (0x552197 in /usr/bin/python3)
frame #8: _PyFunction_FastCallKeywords + 0x18c (0x5d896c in /usr/bin/python3)
frame #9: _PyEval_EvalFrameDefault + 0x500 (0x54e240 in /usr/bin/python3)
frame #10: _PyEval_EvalCodeWithName + 0x252 (0x54b9f2 in /usr/bin/python3)
frame #11: PyEval_EvalCode + 0x23 (0x54dd33 in /usr/bin/python3)
frame #12: /usr/bin/python3() [0x630f22]
frame #13: PyRun_FileExFlags + 0x97 (0x630fd7 in /usr/bin/python3)
frame #14: PyRun_SimpleFileExFlags + 0x17f (0x631c3f in /usr/bin/python3)
frame #15: /usr/bin/python3() [0x65414e]
frame #16: _Py_UnixMain + 0x2e (0x6544ae in /usr/bin/python3)
frame #17: __libc_start_main + 0xeb (0x7f6cf81d8b6b in /lib/x86_64-linux-gnu/libc.so.6)
frame #18: _start + 0x2a (0x5e04ea in /usr/bin/python3)

from tvm.

yinghai avatar yinghai commented on September 1, 2024

I don't think we support RNN to relay now.

from tvm.

kaimast avatar kaimast commented on September 1, 2024

I figured. Is it planned for a future release?

from tvm.

yinghai avatar yinghai commented on September 1, 2024

As far as I understand, this is not planned. If you are interested, you are welcome to help.

from tvm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.