Unverified Commit 80dde852 authored by rxsang's avatar rxsang Committed by GitHub
Browse files

Make BatchTimestamp object printable. (#6557)

* Make BatchTimestamp object printable.

* Removing trailing whitespace.

* Make BatchTimestamp repr a string.
parent e9359d00
......@@ -31,6 +31,10 @@ class BatchTimestamp(object):
self.batch_index = batch_index
self.timestamp = timestamp
def __repr__(self):
return "'BatchTimestamp<batch_index: {}, timestamp: {}>'".format(
self.batch_index, self.timestamp)
class TimeHistory(tf.keras.callbacks.Callback):
"""Callback for Keras models."""
......
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