1
我在使用tf.boolean_mask()
得到這個UserWarning:獲取UserWarning而我用tf.boolean_mask
/usr/local/lib/python2.7/site-packages/tensorflow/python/ops/gradients_impl.py:93: UserWarning: Converting sparse IndexedSlices to a dense Tensor of unknown shape. This may consume a large amount of memory.
"Converting sparse IndexedSlices to a dense Tensor of unknown shape. "
一旦我刪除它,警告味精消失。我發現this answer,但我沒有使用tf.gather()
,我確信我通過了tf.Variable
和tf.placeholder
到tf.nn.embedding_lookup()
。那麼我如何解決這個問題呢?
感謝您的幫助!