23440472fbed6263ec7723a2c58b27c87cf55f62,example4.py,,,#,32
Before Change
with tf.Session() as sess:
sess.run(tf.global_variables_initializer())
while True:
print(sess.run(data_node))
After Change
while True:
start_t = time.perf_counter()
x = sess.run(data_node)
usage = time.perf_counter() - start_t
print("speed: %d/s" % int(x["feature"].shape[0] / usage))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: hanxiao/bert-as-service
Commit Name: 23440472fbed6263ec7723a2c58b27c87cf55f62
Time: 2018-11-27
Author: hanhxiao@tencent.com
File Name: example4.py
Class Name:
Method Name:
Project Name: hanxiao/bert-as-service
Commit Name: 321b2c3a69a0255419e0f36a630a83870488d02a
Time: 2018-11-13
Author: hanhxiao@tencent.com
File Name: service/server.py
Class Name: BertWorker
Method Name: run
Project Name: hanxiao/bert-as-service
Commit Name: e7ca574c2479137864e86b7c8e2555ded9a89bda
Time: 2018-11-27
Author: hanhxiao@tencent.com
File Name: example5.py
Class Name:
Method Name: