Check if you didn’t forget to convert the prediction to int as in the hint: # get the next symbol by getting a logsoftmax sample (*hint: cast to an int)
May I get some assistance with the UNQ_C6 code?
I am failing test_next_symbol UNIT_TEST with the value error:
"ValueError: Number of weight elements (0) does not equal the number of sublayers (9) in: Serial_in2_out2[
Select[0,1,0,1]_in2_out4
"
I found out the source of the error. When I inspected the model.weights calculated few cells above, I received no value. After initializing the weights from the pre-trained NMTAttn model, I was able to pass that check point.
Now I am stuck at this failure:
AssertionError: Expected output: [7283, -9.929085731506348], your output: [140, -0.0002193450927734375]
Any hints? I have tried playing with the output[x,y,:] slice as well as with the logsoftmax_sample temperature. I get always the same error