b387bdd4399b480248de2b59367b2360b1cf5167,python/baseline/tf/tagger/model.py,TaggerModelBase,load,#Any#Any#,104

Before Change


        _state = read_json("{}.state".format(basename))
        if __version__ != _state["version"]:
            logger.warning("Loaded model is from baseline version %s, running version is %s", _state["version"], __version__)
        _state["sess"] = kwargs.pop("sess", tf.Session())
        embeddings_info = _state.pop("embeddings")

        with _state["sess"].graph.as_default():

After Change


        _state = read_json("{}.state".format(basename))
        if __version__ != _state["version"]:
            logger.warning("Loaded model is from baseline version %s, running version is %s", _state["version"], __version__)
        _state["sess"] = kwargs.pop("sess", create_session())
        embeddings_info = _state.pop("embeddings")

        with _state["sess"].graph.as_default():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 4

Instances


Project Name: dpressel/mead-baseline
Commit Name: b387bdd4399b480248de2b59367b2360b1cf5167
Time: 2019-06-07
Author: dpressel@gmail.com
File Name: python/baseline/tf/tagger/model.py
Class Name: TaggerModelBase
Method Name: load


Project Name: dpressel/mead-baseline
Commit Name: b387bdd4399b480248de2b59367b2360b1cf5167
Time: 2019-06-07
Author: dpressel@gmail.com
File Name: python/baseline/tf/classify/model.py
Class Name: ClassifierModelBase
Method Name: load


Project Name: dpressel/mead-baseline
Commit Name: b387bdd4399b480248de2b59367b2360b1cf5167
Time: 2019-06-07
Author: dpressel@gmail.com
File Name: python/addons/create_servable_embeddings.py
Class Name: ServableTensorFlowEmbeddingsModel
Method Name: load


Project Name: dpressel/mead-baseline
Commit Name: b387bdd4399b480248de2b59367b2360b1cf5167
Time: 2019-06-07
Author: dpressel@gmail.com
File Name: python/baseline/tf/lm/model.py
Class Name: LanguageModelBase
Method Name: load


Project Name: dpressel/mead-baseline
Commit Name: b387bdd4399b480248de2b59367b2360b1cf5167
Time: 2019-06-07
Author: dpressel@gmail.com
File Name: python/baseline/tf/seq2seq/model.py
Class Name: EncoderDecoderModelBase
Method Name: load


Project Name: dpressel/mead-baseline
Commit Name: 57591a23e73d3b2ca8132589e68c8a480f1686f5
Time: 2020-04-28
Author: dpressel@gmail.com
File Name: baseline/tf/lm/model.py
Class Name: LanguageModelBase
Method Name: load