Tensorflow-RNN-Tutorial icon indicating copy to clipboard operation
Tensorflow-RNN-Tutorial copied to clipboard

tf.contrib.seq2seq.dynamic_decode() 오류가 발생합니다.

Open sungreong opened this issue 5 years ago • 1 comments

안녕하세요. 좋은 코드 공유해주셔서 감사합니다. 다름이 아니라 저도 동일한 부분에서 동일한 에러가 발생합니다 TypeError: Input 'y' of 'Equal' Op has type int64 that does not match type int32 of argument 'x'.

버전은 현재 1.15를 사용하고 있는데, 혹시 코드에 사용한 텐서플로우 버전을 알 수 있을까요?

아니면 혹시 tf.nn.dynamic_rnn 으로 훈련과 추론을 나눠서 할 수도 있을까요?

감사합니다.

sungreong avatar Apr 14 '20 07:04 sungreong

helper = tf.contrib.seq2seq.TrainingHelper(inputs, np.array([seq_length]*batch_size))

==>

helper = tf.contrib.seq2seq.TrainingHelper(inputs, np.array([seq_length]*batch_size, dtype=np.int32))

hccho2 avatar May 23 '20 12:05 hccho2