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

How about the support for RNN? #16

Open
justdark opened this issue May 4, 2017 · 4 comments
Open

How about the support for RNN? #16

justdark opened this issue May 4, 2017 · 4 comments

Comments

@justdark
Copy link

justdark commented May 4, 2017

Not all thnets supported layers have been implemented

is the LSTM layer supported? I use thexport on my model,It seems the LSTM with embedding layer have been decomposed to a extreme complicated structure with more than 7000+ functions, even exceed the default maxium recursive depth of Python. (the length of input series is 400).
some of them

<torch.autograd._functions.basic_ops.Add object at 0x10fe1c960>
<torch.autograd._functions.basic_ops.Mul object at 0x10fe1e5c0>
<torch.autograd._functions.pointwise.Sigmoid object at 0x10fe1e138>
<torch.autograd._functions.tensor.Chunk object at 0x10fe1e050>
<torch.autograd._functions.pointwise.Tanh object at 0x10fe1e308>
<torch.autograd._functions.tensor.Chunk object at 0x10fe1e050>
<torch.autograd._functions.tensor.Concat object at 0x10ee39308>

is that affordable for thnets? Can I use the model file directly for production?

@mvitez
Copy link
Owner

mvitez commented May 4, 2017

No, LSTM is not supported. thexport does not detect loops, so it failed to detect it and give an error.

@justdark
Copy link
Author

justdark commented May 4, 2017

I use

import sys
sys.setrecursionlimit(10000)`

can forcibly export the graph,is that not usable? I think it automaticly act like loops.

@mvitez
Copy link
Owner

mvitez commented May 4, 2017

No, it's not usable.

@justdark
Copy link
Author

justdark commented May 4, 2017

ok~~ I'll figure out how to handle it. tks~~

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

2 participants