ValueError: Tensor conversion requested dtype float32 for Tensor with dtype int32
<p>I get following error </p>

<pre><code>ValueError: Tensor conversion requested dtype float32 for Tensor with dtype int32: 'Tensor("Placeholder_1:0", shape=TensorShape([Dimension(128), Dimension(2)]), dtype=int32)'
</code></pre>

<p>when I try to calculate cross entropy loss</p>

<pre><code>losses = tf.nn.softmax_cross_entropy_with_logits(scores, input_y)
</code></pre>

<p>I use Python 3.4.3. </p>

<p>Any ideas why? </p>