2017-08-26 8 views
1

私はTensorFlow PartitionedVariableオブジェクトを作成しました。残念ながら私はプログラムの他の場所でスライスする必要があります(変数の分割方法によらない)。残念ながら私が明白な(X[count:])を試してみると、エラーTypeError: PartitionedVariable object has no attribute getitemが出ます。それはバグですか、またはスライスする方法の回避策がありますPartitionedVariableTensorflow:スライシングPartitionedVariable

答えて

0

tf.slice()を使用する必要があります。

tf.slice(X, [count], [-1]) 

あなたの場合、

関連する問題