Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

Need an op to see if a tensor holds data

Open ktlichkid opened this issue 8 years ago • 0 comments

We may need an op to tell if a tensor holds data or not. In our current seq2seq models, if the output sentence length < max_length, decoder will output empty tensors. Those tensors were not handled correctly in current version -- the program would crash because the while loop would continue and try looking for next words from empty tensors. As a consequence we need an op to help break the while loop if that was the case.

ktlichkid avatar May 09 '18 03:05 ktlichkid