410992318552115d2e3de84844bf523012e3e98e,thumt/utils/hooks.py,,_evaluate,#,133
Before Change
// shape: ([batch, len], ..., [batch, len])
references = [item.tolist() for item in feats["references"]]
all_outputs.extend(outputs)
for i in range(len(refs)):
all_refs[i].extend(references[i])
After Change
// A list of numpy array with shape: [batch, len]
outputs = sess.run(op, feed_dict=feed_dict)
for shard in outputs:
all_outputs.extend(shard.tolist())
// shape: ([batch, len], ..., [batch, len])
references = [item.tolist() for item in feats["references"]]
for i in range(len(refs)):
all_refs[i].extend(references[i])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: THUNLP-MT/THUMT
Commit Name: 410992318552115d2e3de84844bf523012e3e98e
Time: 2019-11-26
Author: cg847519328@163.com
File Name: thumt/utils/hooks.py
Class Name:
Method Name: _evaluate
Project Name: gooofy/zamia-speech
Commit Name: 9f376975884e7a0d7a553dcdfa1ab54b66ddbb1f
Time: 2018-12-10
Author: guenter@zamia.org
File Name: speech_editor.py
Class Name:
Method Name:
Project Name: librosa/librosa
Commit Name: 4b7ac95fcffa7a947b61913df34f252ba168a3fa
Time: 2013-12-23
Author: brm2132@columbia.edu
File Name: librosa/util.py
Class Name:
Method Name: get_audio_files