    def log_inputs(self, inputs: List[TensorDict], log_prefix: str = "") -> None:
        """
        Can be optionally implemented by subclasses.

        Defines how batch inputs are logged. This is called once at the start of each epoch.
        """
        pass
Can be optionally implemented by subclasses.

Defines how batch inputs are logged. This is called once at the start of each epoch.
allennlp/training/callbacks/log_writer.py