1 parent e95d798 commit 30c0070Copy full SHA for 30c0070
1 file changed
tutorial-contents/403_RNN_regressor.py
@@ -67,7 +67,7 @@ def forward(self, x, h_state):
67
plt.show()
68
69
for step in range(60):
70
- start, end = step * np.pi, (step+1)*np.pi # time steps
+ start, end = step * np.pi, (step+1)*np.pi # time range
71
# use sin predicts cos
72
steps = np.linspace(start, end, TIME_STEP, dtype=np.float32)
73
x_np = np.sin(steps) # float32 for converting torch FloatTensor
0 commit comments