-
Notifications
You must be signed in to change notification settings - Fork 613
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
Segmentation fault with tfa.seq2seq.gather_tree #125
Comments
@qlzh727 Mind taking a look when time allows? Possible this could be related to the packaging, but we'll see. |
Humm, the gather_tree will eventually use a c op, which might be the cause here. Is there any log before it throw the error? @seanpmorgan, we do have a unit test for gather_tree in https://github.com/tensorflow/addons/blob/master/tensorflow_addons/seq2seq/beam_search_ops_test.py. I am wondering is there any similar issue raised from user about using c ops after the recent reorg of the ops? |
Not that I've seen... for example here is a call to the c ops in image When I tried to run the snippet from above though... I got a kernel restart so will need to run locally in order to see what the crash says. Hopefully will have time to look into this a bit in the next day or so |
So I'm unable to replicate this on my local PC, but do get a crash on colab with no error message to work with. Because this works on local PC and passes tests which run this I'm heavily leaning on this being related to #119 An example of core dump due to improper packaging can be seen here @guillaumekln were you able to get any meaningful failure message? |
On second thought not totally sold its related to the packaging, because the same sequence of imports on different computers should both crash (if I totally follow the packaging issue). |
No, it was a plain Segmentation fault. Will try to dig deeper. |
Thanks, here is another (probably) related issue. I bumped to gcc5 so we could build a py37 whl but that was probably not worth it. I'll get feedback from the SIG BUILD meeting today and push a 0.2.1 soon |
@guillaumekln This should be fixed in 0.2.1 can you please confirm? |
Yes, looks like it is working now. Thanks! |
System information
Describe the bug
The
gather_tree
function from theseq2seq
module fails with a Segmentation fault while the same code usingtf.contrib.seq2seq
does not.Describe the expected behavior
The function should run without failures.
Code to reproduce the issue
The text was updated successfully, but these errors were encountered: