3cdd0ddb974ba967e9d39e9b275bedc89badd73b,chiron/export_test.py,,input_output_list,#,26
Before Change
logits, _ = inference(x, seq_length, training=training)
predict = tf.nn.ctc_greedy_decoder(tf.transpose(logits, perm=[1, 0, 2]), seq_length, merge_repeated=True)
input_dict = {"x": x, "seq_length": seq_length, "training": training}
output_dict = {"decoded_indices": predict[0][0].indices, "decoded_values": predict[0][0].values,
"neg_sum_logits": predict[1]}
return input_dict, output_dict
After Change
full_sequence_len = FLAGS.segment_len,
configure = model_configure)
ratio = tf.constant(ratio,dtype = tf.float32,shape = [])
seq_length_r = tf.cast(tf.round(seq_length/ratio),tf.int32)
prob_logits = path_prob(logits)
predict = tf.nn.ctc_beam_search_decoder(tf.transpose(logits, perm=[1, 0, 2]),
seq_length_r,
merge_repeated=True,
beam_width = FLAGS.beam_width)
input_dict = {"x": x, "seq_length": seq_length, "training": training}
output_dict = {"predict_sequences":predict,"logits":logits, "prob_logits":prob_logits}
return input_dict, output_dict
def build_and_run_exports(job_dir, serving_input_fn):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: haotianteng/Chiron
Commit Name: 3cdd0ddb974ba967e9d39e9b275bedc89badd73b
Time: 2018-09-07
Author: havens.teng@gmail.com
File Name: chiron/export_test.py
Class Name:
Method Name: input_output_list
Project Name: OpenNMT/OpenNMT-tf
Commit Name: 352ebffaa5bd74a454c3b2b10121b2d959ade2fc
Time: 2017-08-22
Author: guillaume.klein@systrangroup.com
File Name: opennmt/models/sequence_tagger.py
Class Name: SequenceTagger
Method Name: _build
Project Name: haotianteng/Chiron
Commit Name: 3cdd0ddb974ba967e9d39e9b275bedc89badd73b
Time: 2018-09-07
Author: havens.teng@gmail.com
File Name: chiron/export_test.py
Class Name:
Method Name: input_output_list
Project Name: dpressel/mead-baseline
Commit Name: 41754da1aa33ddf26ffe34e2eab9c151c721c5d7
Time: 2020-02-25
Author: dpressel@gmail.com
File Name: layers/eight_mile/tf/layers.py
Class Name: TaggerGreedyDecoder
Method Name: neg_log_loss