Tensorflow basic_rnn_seq2seq TypeError: Expected int32, got -0.1 of type 'float' instead
<p>I am trying to run the encoder-decoder model on the dataset. Below is the sample code:</p>

<pre><code>self._input_data = tf.placeholder(tf.int32, [batch_size, num_steps])
self._targets = tf.placeholder(tf.int32, [batch_size, num_steps])
enc_inputs.append(self._input_data) #one batch at once
dec_inputs.append(self._targets)
model = seq2seq.basic_rnn_seq2seq(enc_inputs, dec_inputs, tf.nn.rnn_cell.BasicLSTMCell(size, state_is_tuple=True))
</code></pre>

<p>I get an error of type mismatch (mentioned below). Does anyone know to solve the issue?</p>

<pre><code>tensor_util.py, line 290, in _AssertCompatible
    (dtype.name, repr(mismatch), type(mismatch).__name__))
    TypeError: Expected int32, got -0.1 of type 'float' instead.
</code></pre>