"...git@developer.sourcefind.cn:OpenDAS/mmdetection3d.git" did not exist on "eca5a9f29e689a54d622bea5e3f5bca3ce2e4592"
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): ...@@ -31,6 +31,10 @@ class BatchTimestamp(object):
self.batch_index = batch_index self.batch_index = batch_index
self.timestamp = timestamp self.timestamp = timestamp
def __repr__(self):
return "'BatchTimestamp<batch_index: {}, timestamp: {}>'".format(
self.batch_index, self.timestamp)
class TimeHistory(tf.keras.callbacks.Callback): class TimeHistory(tf.keras.callbacks.Callback):
"""Callback for Keras models.""" """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