class_docstr: Shows the model graph in `TensorBoard <https
  ://www.tensorflow.org/tensorboard`>_.
class_docstr_tok: ["Shows","the","model","graph","in","`","TensorBoard","<","https",":","\/\/www.tensorflow.org\/tensorboard","`",">","_","."]
docstr: The config is expected to include the key
  "summary_writer" with arguments which correspond
  to those listed at <https://tensorboardx.
  readthedocs.io/en/latest/tensorboard.html#tensorboardX.SummaryWriter>:
docstr_tok: ["The","config","is","expected","to","include","the","key","''","summary_writer","''","with","arguments","which","correspond","to","those","listed","at","<","https",":","\/\/tensorboardx",".","readthedocs.io\/en\/latest\/tensorboard.html","#","tensorboardX.SummaryWriter",">",":"]
code: def from_config(
      cls, config: [Dict[str, Any]]
  ) -> "ModelTensorboardHook":
      """The config is expected to include the key
      "summary_writer" with arguments which correspond
      to those listed at <https://tensorboardx.
      readthedocs.io/en/latest/tensorboard.html#tensorboardX.SummaryWriter>:
  
      """
      tb_writer = SummaryWriter(**config["summary_writer"])
      return cls(tb_writer=tb_writer)
  
file_path: ClassyVision/classy_vision/hooks/model_tensorboard_hook.py
imports: import logging
  from typing import Any, Dict
  from classy_vision.generic.distributed_util import is_primary
  from classy_vision.generic.visualize import plot_model
  from classy_vision.hooks import register_hook
  from classy_vision.hooks.classy_hook import ClassyHook
label_desc: Use image node_id 2 for calling the ModelTensorboardHook obj's underlying member method code with example usage: obj.from_config(cls, config) and returns: cls