Skip to content

报错了 #2

Description

@ilioner

Traceback (most recent call last):
File "train.py", line 57, in
tf.app.run()
File "/Library/Python/2.7/site-packages/tensorflow/python/platform/app.py", line 30, in run
sys.exit(main(sys.argv))
File "train.py", line 46, in main
embedding_size=FLAGS.embedding_size
File "/Volumes/Files/WorkFile/Demo/Char-RNN-TensorFlow/model.py", line 40, in init
self.build_lstm()
File "/Volumes/Files/WorkFile/Demo/Char-RNN-TensorFlow/model.py", line 79, in build_lstm
seq_output = tf.concat(self.lstm_outputs, 1)
File "/Library/Python/2.7/site-packages/tensorflow/python/ops/array_ops.py", line 331, in concat
dtype=dtypes.int32).get_shape(
File "/Library/Python/2.7/site-packages/tensorflow/python/framework/ops.py", line 566, in convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/Library/Python/2.7/site-packages/tensorflow/python/framework/ops.py", line 510, in _TensorTensorConversionFunction
% (dtype.name, t.dtype.name, str(t)))
ValueError: Tensor conversion requested dtype int32 for Tensor with dtype float32: 'Tensor("lstm/RNN/transpose:0", shape=(32, 26, 128), dtype=float32)'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions