class_docstr: Callback for validation loss.
class_docstr_tok: ["Callback","for","validation","loss","."]
docstr: Initializes the Callback.
  
  Args:
      log_dir: Tensorboard log directory to write to.
docstr_tok: ["Initializes","the","Callback",".","Args",":","log_dir",":","Tensorboard","log","directory","to","write","to","."]
code: def __init__(self, log_dir: str) -> None:
      """
      Initializes the Callback.
  
      Args:
          log_dir: Tensorboard log directory to write to.
      """
  
      super().__init__()
      self.summary_writer = tf.summary.create_file_writer(log_dir)
  
imports: import tensorflow
label_desc: Use image node_id 1 to create a new TensorboardCallback object from inherited base classes: tf.keras.callbacks with example: obj = TensorboardCallback(log_dir)