title: Does tf.one_hot() supports SparseTensor as indices parameter?
body: <p>I would like to ask whether <a href="https://www.tensorflow.org/api_docs/python/tf/one_hot" rel="nofollow noreferrer">tf.one_hot()</a> function supports SparseTensor as the "indices" parameter. I want to do a multi-label classification (each example has multiple labels) which requires to calculate a cross_entropy loss. </p>
  
  <p>I try to directly put the SparseTensor in the "indices" parameter but it raises the following error:</p>
  
  <p>TypeError: Failed to convert object of type  to Tensor. Contents: SparseTensor(indices=Tensor("read_batch_features/fifo_queue_Dequeue:106", shape=(?, 2), dtype=int64, device=/job:worker), values=Tensor("string_to_index_Lookup:0", shape=(?,), dtype=int64, device=/job:worker), dense_shape=Tensor("read_batch_features/fifo_queue_Dequeue:108", shape=(2,), dtype=int64, device=/job:worker)). Consider casting elements to a supported type.</p>
  
  <p>Any suggestion on the possible cause?</p>
  
  <p>Thanks.</p>