cc783998481f2882b3a2ec70d2f59d3cebc7be2b,official/nlp/modeling/models/bert_classifier.py,BertClassifier,checkpoint_items,#BertClassifier#,99

Before Change



  @property
  def checkpoint_items(self):
    return dict(encoder=self._network)

  def get_config(self):
    return self._config

After Change


  def checkpoint_items(self):
    items = dict(encoder=self._network)
    if hasattr(self.classifier, "checkpoint_items"):
      for key, item in self.classifier.checkpoint_items.items():
        items[".".join([self.classifier.name, key])] = item
    return items

  def get_config(self):
    return self._config
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: tensorflow/models
Commit Name: cc783998481f2882b3a2ec70d2f59d3cebc7be2b
Time: 2020-08-18
Author: hongkuny@google.com
File Name: official/nlp/modeling/models/bert_classifier.py
Class Name: BertClassifier
Method Name: checkpoint_items


Project Name: epfl-lts2/pygsp
Commit Name: 875911ddae0206073e3b3874ffb59d9d5902a0a5
Time: 2019-03-25
Author: michael.defferrard@epfl.ch
File Name: pygsp/graphs/graph.py
Class Name: Graph
Method Name: subgraph


Project Name: havakv/pycox
Commit Name: 52ded0132991ed5142f3b1587b02b4b509c524f3
Time: 2018-03-12
Author: kvamme@samba8.ad.nr.no
File Name: pycox/callbacks.py
Class Name: TrainingLogger
Method Name: to_pandas