4aa21615a1f25aa38d298d92a02ac1fde9ae9067,server/bert_serving/server/graph.py,,optimize_graph,#Any#Any#,36

Before Change


                False)

            for n in tmp_g.node:
                print("* %s | %s " % (n.name, n.attr["dtype"]))
        tmp_file = tempfile.NamedTemporaryFile("w", delete=False, dir=args.graph_tmp_dir).name
        logger.info("write graph to a tmp file: %s" % tmp_file)
        with tf.gfile.GFile(tmp_file, "wb") as f:
            f.write(tmp_g.SerializeToString())

After Change


                False)

            for n in tmp_g.node:
                if "embeddings" in n.name:
                    print(n)
        tmp_file = tempfile.NamedTemporaryFile("w", delete=False, dir=args.graph_tmp_dir).name
        logger.info("write graph to a tmp file: %s" % tmp_file)
        with tf.gfile.GFile(tmp_file, "wb") as f:
            f.write(tmp_g.SerializeToString())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: hanxiao/bert-as-service
Commit Name: 4aa21615a1f25aa38d298d92a02ac1fde9ae9067
Time: 2019-01-17
Author: hanhxiao@tencent.com
File Name: server/bert_serving/server/graph.py
Class Name:
Method Name: optimize_graph


Project Name: asyml/texar
Commit Name: 5d2ce2c76bb21b726814fc178beee2c36e63b870
Time: 2018-11-27
Author: haoranshi97@gmail.com
File Name: examples/bert/utils/model_utils.py
Class Name:
Method Name: _get_assignment_map_from_checkpoint


Project Name: tensorlayer/tensorlayer
Commit Name: 741ad9fb33a98023d76c6b962ae77183745d4ffa
Time: 2019-01-17
Author: jingqing.zhang15@imperial.ac.uk
File Name: tensorlayer/models/core.py
Class Name: Model
Method Name: __call__


Project Name: AlexEMG/DeepLabCut
Commit Name: 779ecf514d23a0cf7c8f725a5f0fccd6c9d05bea
Time: 2021-02-01
Author: alexander@deeplabcut.org
File Name: deeplabcut/pose_estimation_tensorflow/train_multianimal.py
Class Name:
Method Name: get_optimizer