Char-RNN-TensorFlow icon indicating copy to clipboard operation
Char-RNN-TensorFlow copied to clipboard

报错了

Open ilioner opened this issue 7 years ago • 3 comments

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)'

ilioner avatar Aug 21 '17 07:08 ilioner

确认版本>=1.2?

hzy46 avatar Aug 22 '17 06:08 hzy46

when i up the tensorflow to 1.3,this code is ok。

lovychen avatar Aug 28 '17 02:08 lovychen

报错:argument --lstm_size:conflicting option string:--lstm_size

maxwill0102 avatar Oct 08 '17 15:10 maxwill0102