MCPcopy Create free account
hub / github.com/NVIDIA/FasterTransformer / check_result

Method check_result

tests/decoding/tf_decoding_unit_test.py:50–55  ·  view source on GitHub ↗
(self, beam_width, datatype, test_time, topk=4, topp=0.0, batch_size=-1,
                     decoder_bleu_score_threshold=None, decoding_bleu_score_threshold=None)

Source from the content-addressed store, hash-verified

48 }
49
50 def check_result(self, beam_width, datatype, test_time, topk=4, topp=0.0, batch_size=-1,
51 decoder_bleu_score_threshold=None, decoding_bleu_score_threshold=None):
52 p = Process(target=self.run_translate, args=(beam_width, datatype, test_time, topk, topp,
53 batch_size, decoder_bleu_score_threshold, decoding_bleu_score_threshold))
54 p.start()
55 p.join()
56
57 def run_translate(self, beam_width, datatype, test_time, topk=4, topp=0.0, batch_size=-1,
58 decoder_bleu_score_threshold=None, decoding_bleu_score_threshold=None):

Calls 1

startMethod · 0.45

Tested by

no test coverage detected