Open Surya20794 opened 4 years ago
change to: initial_state = dec_cell.zero_state(batch_size=batch_size,dtype=tf.float32).clone(cell_state=enc_state)
also
inferencelogits, ,_ = tf.contrib.seq2seq.dynamic_decode(inference_decoder, output_time_major=False, impute_finished=True, maximum_iterations=max_target_length)
and
traininglogits, ,_ = tf.contrib.seq2seq.dynamic_decode(training_decoder, output_time_major=False, impute_finished=True, maximum_iterations=max_target_length)
Originally posted by @Sofwath in https://github.com/Currie32/Spell-Checker/issues/3#issuecomment-405510170
training_logits= tf.contrib.seq2seq.dynamic_decode(training_decoder,
NameError: global name 'training_decoder' is not defined
change to: initial_state = dec_cell.zero_state(batch_size=batch_size,dtype=tf.float32).clone(cell_state=enc_state)
also
inferencelogits, ,_ = tf.contrib.seq2seq.dynamic_decode(inference_decoder, output_time_major=False, impute_finished=True, maximum_iterations=max_target_length)
and
traininglogits, ,_ = tf.contrib.seq2seq.dynamic_decode(training_decoder, output_time_major=False, impute_finished=True, maximum_iterations=max_target_length)
Originally posted by @Sofwath in https://github.com/Currie32/Spell-Checker/issues/3#issuecomment-405510170