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

Function run

examples/tensorflow/encoder/encoder_example.py:227–230  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

225 thread_num = args_dict['thread_num']
226
227 def run():
228 ft_while_time = time_test(sess, ft_while_tensor, 1) / ite # while_loop has run ite times
229 print("[INFO] batch_size {} max_seq_len {} {} layer FT-OP-while-time {:6.2f} ms with {} threads".format(batch_size,
230 max_seq_len, num_layer, ft_while_time, thread_num))
231
232 for i in range(thread_num):
233 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