2017-01-20 39 views

回答

2

你需要特別注意列的定義:

tf.contrib.layers.sparse_column_with_hash_bucket(...)

TF .contrib.layers.bucketized_column(...)

tf.contrib.layers.crossed_column(...)

如果您使用的版本0.12.1簡單的方式來解決是包括參數組合

tf.contrib.layers.sparse_column_with_hash_bucket(...的修改,組合= 「sqrtn」 )

tf.contrib.layers.bucketized_column(...,組合器= 「sqrtn」)

tf.contrib.layers.crossed_column(...,組合器= 「sqrtn」)

+1

如果感興趣,最近的版本TensorFlow 1.0.0返回相同的錯誤消息。上面的解決方案也適用於它。 – tagoma

相關問題