(self)
return self._optimizer
Optimizer to be used by the model.
Optimizer to be used by the model.
Optimizer to be used by the model .
def optimizer(self):
        """Optimizer to be used by the model."""
        if self._optimizer is None:
            self._optimizer = tf.train.GradientDescentOptimizer(learning_rate=self.lr)

        return self._optimizer
def optimizer ( self ) : if self . _optimizer is None : self . _optimizer = tf . train . GradientDescentOptimizer ( learning_rate = self . lr ) return self . _optimizer