We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be54767 commit 2b83f17Copy full SHA for 2b83f17
1 file changed
tf2/tf2-12-4-rnn_long_char.py
@@ -51,7 +51,7 @@
51
results = tf.model.predict(X_one_hot)
52
for j, result in enumerate(results):
53
index = np.argmax(result, axis=1)
54
- if j is 0: # print all for the first result to make a sentence
+ if j == 0: # print all for the first result to make a sentence
55
print(''.join([char_set[t] for t in index]), end='')
56
else:
57
print(char_set[index[-1]], end='')
0 commit comments