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

Function run

examples/tensorflow/bert/bert_example.py:214–217  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212 thread_list = []
213 thread_num = args_dict['thread_num']
214 def run():
215 ft_while_time = time_test(sess, ft_while_tensor, 1) / ite # while_loop has run ite times
216 print("[INFO] batch_size {} max_seq_len {} {} layer FT-OP-while-time {:6.2f} ms with {} threads".format(batch_size,
217 max_seq_len, num_layer, ft_while_time, thread_num))
218
219 for i in range(thread_num):
220 thread_list.append(threading.Thread(target=run, name="RunFT"))

Callers

nothing calls this directly

Calls 1

time_testFunction · 0.90

Tested by

no test coverage detected