def get_batch(): global time_steps filename = 'TrainData.txt' xs, ys = GetData(filename, batch_size) #原始数据 x->[None,1,11] y->[None,1] #[1,8,5,7,3,1,9,7,1,9,1] [888] return (xs.reshape([-1, time_steps, input_size]), ys.reshape([-1, output_size]))