2017-08-06 122 views
-3
input = tf.placeholder(tf.float32, [None, 12, 5]) 
step = tf.placeholder(tf.int32, [None]) 

我在張量流中使用佔位符。輸入形狀爲[None, 12, 5],階梯形狀爲[None],我想要得到的形狀是[None, 5]。步驟中的值在[0, 11]之間。在張量流中使用佔位符

+0

這個問題是不是'tf.placeholder'。看看[這個問題](https://stackoverflow.com/questions/45530786/how-to-use-a-tensor-for-indexing-another-tensor-in-tensorflow) –

+0

非常感謝!!!! –

回答

0

您可以使用

step = tf.placeholder(tf.int32, [None, 5]) 
相關問題