Hi,
In the first run of the sample function, the correct index and letter are calculated. Therefore I assume that the softmax calculation is correct. All further iterations differ from the expected output:
Sampling:
list of sampled indices:
[23, 15, 23, 22, 25, 5, 12, 20, 12, 20, 5, 6, 17, 1, 22, 25, 5, 0]
list of sampled characters:
[‘w’, ‘o’, ‘w’, ‘v’, ‘y’, ‘e’, ‘l’, ‘t’, ‘l’, ‘t’, ‘e’, ‘f’, ‘q’, ‘a’, ‘v’, ‘y’, ‘e’, ‘\n’]
AssertionError: Wrong values
Any suggestions?
Cheers,
Arno