Commit d2937946 authored by Toby Boyd's avatar Toby Boyd
Browse files

fixed import lint and single docstring complaint.

parent 122bb012
...@@ -20,11 +20,12 @@ from __future__ import print_function ...@@ -20,11 +20,12 @@ from __future__ import print_function
import time import time
from absl import flags from absl import flags # pylint: disable=g-bad-import-order
import numpy as np # pylint: disable=g-bad-import-order import numpy as np # pylint: disable=g-bad-import-order
import tensorflow as tf # pylint: disable=g-bad-import-order import tensorflow as tf # pylint: disable=g-bad-import-order
from tensorflow.python.keras.optimizer_v2 import gradient_descent as gradient_descent_v2 from tensorflow.python.keras.optimizer_v2 import (gradient_descent as
gradient_descent_v2)
FLAGS = flags.FLAGS FLAGS = flags.FLAGS
...@@ -91,6 +92,7 @@ class LearningRateBatchScheduler(tf.keras.callbacks.Callback): ...@@ -91,6 +92,7 @@ class LearningRateBatchScheduler(tf.keras.callbacks.Callback):
self.epochs += 1 self.epochs += 1
def on_batch_begin(self, batch, logs=None): def on_batch_begin(self, batch, logs=None):
"""Executes before step begins."""
lr = self.schedule(self.epochs, lr = self.schedule(self.epochs,
batch, batch,
self.batches_per_epoch, self.batches_per_epoch,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment