Esempio n. 1
0
 def _apply_dense(self, grad, var):
   acc = self.get_slot(var, "accumulator")
   return training_ops.apply_proximal_adagrad(
       var, acc, self._learning_rate_tensor,
       self._l1_regularization_strength_tensor,
       self._l2_regularization_strength_tensor,
       grad, use_locking=self._use_locking)
Esempio n. 2
0
 def _apply_dense(self, grad, var):
   acc = self.get_slot(var, "accumulator")
   return training_ops.apply_proximal_adagrad(
       var, acc, self._learning_rate_tensor,
       self._l1_regularization_strength_tensor,
       self._l2_regularization_strength_tensor,
       grad, use_locking=self._use_locking)