Inference with tensorflow checkpoints
问题 I am feeding characters ( x_train ) to the RNN model defined in example 13 of this link. Here is the code corresponding to model definition, input pre-processing and training. def char_rnn_model(features, target): """Character level recurrent neural network model to predict classes.""" target = tf.one_hot(target, 15, 1, 0) #byte_list = tf.one_hot(features, 256, 1, 0) byte_list = tf.cast(tf.one_hot(features, 256, 1, 0), dtype=tf.float32) byte_list = tf.unstack(byte_list, axis=1) cell = tf