Skip to content

Commit 30c0070

Browse files
author
Morvan Zhou
committed
update
1 parent e95d798 commit 30c0070

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tutorial-contents/403_RNN_regressor.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def forward(self, x, h_state):
6767
plt.show()
6868

6969
for step in range(60):
70-
start, end = step * np.pi, (step+1)*np.pi # time steps
70+
start, end = step * np.pi, (step+1)*np.pi # time range
7171
# use sin predicts cos
7272
steps = np.linspace(start, end, TIME_STEP, dtype=np.float32)
7373
x_np = np.sin(steps) # float32 for converting torch FloatTensor

0 commit comments

Comments
 (0)