float32, [None, 784]) # [データ数, 28時刻, 28画素]の3次元配列に変換 input = tf.reshape(x, [-1, n_in, n_time]) # 中間層(3層構造) with tf.name_scope("layer_lstm"): # 中間層として1ユニットあたり128個のLSTMセルを配置し、これを3個生成 stacked_cells = [tf.nn.rnn_...
float32, [None, 784]) # [データ数, 28時刻, 28画素]の3次元配列に変換 input = tf.reshape(x, [-1, n_in, n_time]) # 中間層(3層構造) with tf.name_scope("layer_lstm"): # 中間層として1ユニットあたり128個のLSTMセルを配置し、これを3個生成 stacked_cells = [tf.nn.rnn_...