Style fix in callbacks.
@@ -608,7 +608,7 @@ class TensorBoard(Callback):
write_images=False,
embeddings_freq=0,
embeddings_layer_names=None,
- embeddings_metadata={}):
+ embeddings_metadata=None):
super(TensorBoard, self).__init__()
if K.backend() != 'tensorflow':
raise RuntimeError('TensorBoard callback only works '
@@ -620,7 +620,7 @@ class TensorBoard(Callback):
self.write_images = write_images
self.embeddings_freq = embeddings_freq
self.embeddings_layer_names = embeddings_layer_names
- self.embeddings_metadata = embeddings_metadata
+ self.embeddings_metadata = embeddings_metadata or {}
def set_model(self, model):
self.model = model
