"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "5dd0477fd4123e9ed76bc37361985357d45f70a2"
Commit 625cc2fa authored by Yue (R) Zhao's avatar Yue (R) Zhao Committed by Facebook GitHub Bot
Browse files

tensorboard add_graph

Summary: Add the API to log graph in tensorboard

Reviewed By: wat3rBro

Differential Revision: D27855774

fbshipit-source-id: 415c469c5de0c56fc828d1b95f4be697e0acac84
parent bd6043ee
......@@ -276,6 +276,13 @@ class Detectron2GoRunner(BaseRunner):
if cfg.MODEL_EMA.ENABLED and cfg.MODEL_EMA.USE_EMA_WEIGHTS_FOR_EVAL_ONLY:
model_ema.apply_model_ema(model)
# Note: the _visualize_model API is experimental
if comm.is_main_process():
if hasattr(model, "_visualize_model"):
logger.info("Adding model visualization ...")
tbx_writer = _get_tbx_writer(get_tensorboard_log_dir(cfg.OUTPUT_DIR))
model._visualize_model(tbx_writer)
return model
def build_checkpointer(self, cfg, model, save_dir, **kwargs):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment