###前提・実現したいこと
tensorflowのチュートリアルseq2seqに関するものです。
全くの初心者で何が起きているのかわかりません
ご教授願います
###発生している問題・エラーメッセージ
line 114, in __init__ softmax_loss_function=softmax_loss_function) TypeError: model_with_buckets() got multiple values for argument 'softmax_loss_function'
###該当のソースコード
python
1 if forward_only: 2 self.outputs, self.losses = tf.contrib.legacy_seq2seq.model_with_buckets( 3 self.encoder_inputs, self.decoder_inputs, targets, 4 self.target_weights, buckets, self.target_vocab_size, 5 lambda x, y: seq2seq_f(x, y, True), 6 softmax_loss_function=softmax_loss_function) 7 8 if output_projection is not None: 9 for b in xrange(len(buckets)): 10 self.outputs[b] = [tf.matmul(output, output_projection[0]) + 11 output_projection[1] 12 for output in self.outputs[b]] 13 else: 14 self.outputs, self.losses = tf.contrib.legacy_seq2seq.model_with_buckets( 15 self.encoder_inputs, self.decoder_inputs, targets, 16 self.target_weights, buckets, self.target_vocab_size, 17 lambda x, y: seq2seq_f(x, y, False), 18 softmax_loss_function=softmax_loss_function)
###試したこと
###補足情報(言語/FW/ツール等のバージョンなど)
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/12/21 05:58
2017/12/21 06:44 編集
2017/12/21 08:29
2017/12/21 13:48