alex-berard / seq2seq

Attention-based sequence to sequence learning
Apache License 2.0
388 stars 122 forks source link

What does this function mean? #19

Open guotong1988 opened 6 years ago

guotong1988 commented 6 years ago

def look in https://github.com/eske/seq2seq/blob/master/translate/models.py

I see it in https://github.com/eske/seq2seq/blob/master/translate/models.py#L851 where a lot of init_var here

        initial_context, _ = look(0, initial_output, initial_input, pos=initial_pos, prev_weights=initial_weights,
                                  context=zero_context)

@eske Thank you!!