You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a very weird problem going on with the machine translation example. In stream.py, get_data_from_batch method was reimplemented for PaddingWithEOS class.
On a system with up-to-date Theano, blocks and fuel, the RNNSearch model runs correctly. I'm trying to implement another model on top of this example which also uses the stream.py module for stream processing but with masks disabled: All sequences are padded with EOS and the sequences are all 32 length.
The problem is that for this code, I'm getting a Theano exception. I traced it back to the following problem: Blocks was never getting the padded batch which should have been returned by PaddingWithEOS.get_data_from_batch() method. I then checked through this method in the fuel repository but it wasn't mentioned anywhere in the code. Actually, I couldn't find any caller of this method at all in blocks, fuel, blocks-examples code tree :) Then I discovered that this method was renamed to get_batch() in:
commit 667e81fd1e4c02dece0ef0abc71a7870b18506bc
Author: Vincent Dumoulin <[email protected]>
Date: Tue Jul 7 15:26:40 2015 -0400
Adapt Filter, Cache, Batch, Unpack, Padding to new Transformer interface
Now when I rename it to get_batch in stream.py, it started to work. The holy question is how come the current RNNSearch code is working without exception?
Thanks.
The text was updated successfully, but these errors were encountered:
To follow up this question, I add source_sentence to training monitor. The data actually shows that the source_sentence and target_sentence are padded with zeros. Is it possible that get_data_from_batch is never called?
Hi,
I have a very weird problem going on with the machine translation example. In
stream.py
,get_data_from_batch
method was reimplemented forPaddingWithEOS
class.On a system with up-to-date Theano, blocks and fuel, the RNNSearch model runs correctly. I'm trying to implement another model on top of this example which also uses the
stream.py
module for stream processing but with masks disabled: All sequences are padded with EOS and the sequences are all 32 length.The problem is that for this code, I'm getting a Theano exception. I traced it back to the following problem: Blocks was never getting the padded batch which should have been returned by
PaddingWithEOS.get_data_from_batch()
method. I then checked through this method in the fuel repository but it wasn't mentioned anywhere in the code. Actually, I couldn't find any caller of this method at all in blocks, fuel, blocks-examples code tree :) Then I discovered that this method was renamed toget_batch()
in:Now when I rename it to
get_batch
in stream.py, it started to work. The holy question is how come the current RNNSearch code is working without exception?Thanks.
The text was updated successfully, but these errors were encountered: