C4_W1: NMT with Attention Assignment

Hi please help,

In NMT with Attention assignment the function sampling_decode() is running for last 2 hr.
Please help me sir/mam.

Hi @ARIJIT_BARAT

Make sure that you:

  • check for the right while loop condition - the current output is not the end of sentence token.
  • update the current output token.
    # check that the current output is not the end of sentence token
    while None != None:
        
        # update the current output token by getting the index of the next word (hint: use next_symbol)
        cur_output, log_prob = None

One of these (or both) conditions could make your function run forever.

Cheers