def __init__(self, file_writer: LogdirWriter, func: Callable, func_name: str, output_dims):
        """
        :param file_writer: Event file writer object.
        :param func: User function that provides histogram values for the TensorBoard.
        :param func_name: Name the function should be seen with in the TensorBoard. This name may
        get altered by tf.summary. For example spaces will be replaced with underscores.
        :param output_dims: The shape of the data returned by the function. The shape must be in
        the format accepted by the `tf.placeholder(...)`
        """

        super().__init__(file_writer)
        self.func = func
        self.placeholder = tf.placeholder(tf.float64, shape=output_dims)
        self._summary = tf.summary.histogram(func_name, self.placeholder)
def __init__ ( self , file_writer : LogdirWriter , func : Callable , func_name : str , output_dims ) : super ( ) . __init__ ( file_writer ) self . func = func self . placeholder = tf . placeholder ( tf . float64 , shape = output_dims ) self . _summary = tf . summary . histogram ( func_name , self . placeholder )
:param file_writer: Event file writer object.
        :param func: User function that provides histogram values for the TensorBoard.
        :param func_name: Name the function should be seen with in the TensorBoard. This name may
        get altered by tf.summary. For example spaces will be replaced with underscores.
        :param output_dims: The shape of the data returned by the function. The shape must be in
        the format accepted by the `tf.placeholder(...)`