I'm trying to run LSTM in python. Does anyone know how to override the "tf.nn.embedding_lookup (embedding, input_data)" method? I'm using float values in my input variable "input_data" but using this method requires integers. What option do I have to enter with float data in RNN?
I'm using the "tf.nn.dynamic_rnn" method to run the network. I've also tried the "legacy_seq2seq.rnn_decoder" method but it also did not work.
embedding = tf.get_variable("embedding", [config.vocab_size, config.hidden_size])
inputs = tf.nn.embedding_lookup(embedding, input_data)
outputs, last_state = tf.nn.dynamic_rnn(cell, inputs, initial_state=self.initial_state)
#outputs, last_state = seq2seq.rnn_decoder(inputs, initial_state, cell, loop_function=loop, scope='rnnlm')