94476ab74dbb7c16ced3f6b680b822df01c8b9f6,example5.py,,,#,48

Before Change


        x = sess.run(data_node)
        cnt += 1
        num_samples += x["feature"].shape[0]
        if cnt % 10 == 0:
            time_used = time.perf_counter() - start_t
            print("data speed: %d/s" % int(num_samples / time_used))
            cnt, num_samples, start_t = 0, 0, time.perf_counter()

After Change


with tf.Session() as sess:
    sess.run(tf.global_variables_initializer())
    cnt, num_samples, start_t = 0, 0, time.perf_counter()
    while True:
        print(sess.run(data_node))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: hanxiao/bert-as-service
Commit Name: 94476ab74dbb7c16ced3f6b680b822df01c8b9f6
Time: 2018-11-27
Author: hanhxiao@tencent.com
File Name: example5.py
Class Name:
Method Name:


Project Name: NervanaSystems/nlp-architect
Commit Name: 794bd558da80b65713b51a964ec61e7ef36d4bf2
Time: 2018-05-14
Author: peteriz@users.noreply.github.com
File Name: examples/intent_extraction/interactive.py
Class Name:
Method Name:


Project Name: autonomio/talos
Commit Name: 1e0dc41ed1a7346076f32741323049b631f93e6e
Time: 2019-03-07
Author: mailme@mikkokotila.com
File Name: talos/scan/scan_run.py
Class Name:
Method Name: scan_run