コード例 #1
0
ファイル: optimizers.py プロジェクト: xuyingjie521/bertfamily
 def _do_layer_adaptation(self, w):
     return (not string_matching(w.name,
                                 self.exclude_from_layer_adaptation))
コード例 #2
0
ファイル: optimizers.py プロジェクト: xuyingjie521/bertfamily
 def _do_lazy_optimization(self, w):
     return string_matching(w.name, self.include_in_lazy_optimization)
コード例 #3
0
ファイル: optimizers.py プロジェクト: xuyingjie521/bertfamily
 def _do_weight_decay(self, w):
     return (not string_matching(w.name,
                                 self.exclude_from_weight_decay))