dd3c13d51975d7ca569681dd19639473d19e8e85,server/bert_serving/server/__init__.py,BertWorker,run1,#BertWorker#,347

Before Change


        receiver.close()
        sink.close()
        context.term()
        self.logger.info("terminated!")

    @staticmethod
    def input_fn_builder():
        import tensorflow as tf

After Change


        print("_run_:%s" % device_lib.list_local_devices())
        estimator = Estimator(model_fn, config=RunConfig(session_config=config))
        for r in estimator.predict(self.input_fn_builder(), yield_single_examples=False):
            print(r)

    def run(self):
        estimator = self.get_estimator()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 2

Instances


Project Name: hanxiao/bert-as-service
Commit Name: dd3c13d51975d7ca569681dd19639473d19e8e85
Time: 2018-12-14
Author: hanhxiao@tencent.com
File Name: server/bert_serving/server/__init__.py
Class Name: BertWorker
Method Name: run1


Project Name: deepmipt/DeepPavlov
Commit Name: 2e530e78c78c3f9f899143c437f55618d3038951
Time: 2018-02-18
Author: arkhipov@yahoo.com
File Name: deeppavlov/core/models/tf_model.py
Class Name: TFModel
Method Name: load


Project Name: hanxiao/bert-as-service
Commit Name: 6f325b9135a729a403840866fcb5248d71f54645
Time: 2018-11-13
Author: hanhxiao@tencent.com
File Name: service/server.py
Class Name: BertServer
Method Name: run


Project Name: hanxiao/bert-as-service
Commit Name: f361ddc628ae5b5ea4cb714465e5b4cdc1a9c02f
Time: 2018-12-13
Author: hanhxiao@tencent.com
File Name: server/bert_serving/server/bert/extract_features.py
Class Name:
Method Name: convert_lst_to_features


Project Name: streamlit/streamlit
Commit Name: ca8bbddecce913a61c33e74e07ddfa5c819a2145
Time: 2018-07-24
Author: adrien.g.treuille@gmail.com
File Name: lib/streamlit/proxy/Proxy.py
Class Name:
Method Name: _print_remote_url