1. 程式人生 > >tf.reshape()的Tensorflow 1.0 版本問題報錯

tf.reshape()的Tensorflow 1.0 版本問題報錯

  • tf.reverse

    • tf.reverse之前會用一維 bool 張量控制要顛倒哪些維度。現在我們使用軸索引張量。

    • 例如,tf.reverse(a, [True, False, True]) 現在必須是 tf.reverse(a, [0, 2])

  • tf.reverse_sequence

    • 關鍵字引數 batch_dim 應重新命名為 batch_axis

    • 關鍵字引數 seq_dim 應重新命名為 seq_axis