autoencoder
autoencoder copied to clipboard
UnimplementedError: TensorArray has size zero, but element shape <unknown> is not fully defined.
Hi, I have this problem:
UnimplementedError (see above for traceback): TensorArray has size zero, but element shape
I know this problem was already report. But did you fix this problem? Or there is a way that can I do it by my self?
Thank You.
This happens when using a corpus with a small size. The preprocessing script separates sentences in bins of length 10-20, 20-30, 30-40, etc. If any of these are empty, this error happens.
Getting same issue with large text. Here is the output I got from preprocessing: Creating vocabulary... Converting word to indices... Converting 682 sentences with length between 31 and 40 Converting 915 sentences with length between 21 and 30 Converting 314 sentences with length between 51 and 60 Converting 1655 sentences with length between 1 and 10 Converting 1206 sentences with length between 11 and 20 Converting 526 sentences with length between 41 and 50 Converting 275 sentences with length between -9 and 0 Numeric representation ready As you can see none of these are empty
Looks like this is caused by 0 length lines You should filter those out