Skip to content

Commit d191c71

Browse files
author
Mofan Zhou
committed
tf RNN example2
1 parent f062d14 commit d191c71

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

tensorflowTUT/tf20_RNN2.2/for_practicing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def get_batch():
3030
seq = np.sin(xs)
3131
res = np.cos(xs)
3232
BATCH_START += TIME_STEPS
33-
# plt.plot(xs[0, :], seq[0, :])
33+
# plt.plot(xs[0, :], res[0, :], 'r', xs[0, :], seq[0, :], 'b--')
3434
# plt.show()
3535
# returned seq, res and shape (batch, step, input)
3636
return [seq[:, :, np.newaxis], res[:, :, np.newaxis], xs]

tensorflowTUT/tf20_RNN2.2/full_code.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def get_batch():
3030
seq = np.sin(xs)
3131
res = np.cos(xs)
3232
BATCH_START += TIME_STEPS
33-
# plt.plot(xs[0, :], seq[0, :])
33+
# plt.plot(xs[0, :], res[0, :], 'r', xs[0, :], seq[0, :], 'b--')
3434
# plt.show()
3535
# returned seq, res and shape (batch, step, input)
3636
return [seq[:, :, np.newaxis], res[:, :, np.newaxis], xs]
Binary file not shown.

0 commit comments

Comments
 (0)