Skip to content

Kmonte/add tb for glt#603

Draft
kmontemayor2-sc wants to merge 11 commits intomainfrom
kmonte/add-tb-for-glt
Draft

Kmonte/add tb for glt#603
kmontemayor2-sc wants to merge 11 commits intomainfrom
kmonte/add-tb-for-glt

Conversation

@kmontemayor2-sc
Copy link
Copy Markdown
Collaborator

Scope of work done

Where is the documentation for this feature?: N/A

Did you add automated tests or write a test plan?

Updated Changelog.md? NO

Ready for code review?: NO

kmontemayor and others added 11 commits April 28, 2026 18:24
Replace tests for the four-function API with tests for the new
TensorBoardWriter class. Tests fail with ImportError until the class
lands in the next commit.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Code review found that test_close_on_noop_writer_does_not_raise only
called close() once, so idempotency on the no-op path was untested.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Collapse resolve_tensorboard_log_dir, create_tensorboard_writer,
write_tensorboard_scalar, close_tensorboard_writer, and
VERTEX_TENSORBOARD_LOG_DIR_ENV_KEY into a single TensorBoardWriter class
with from_uri classmethod. The class is context-managerable and no-ops
when disabled, eliminating Optional plumbing at call sites.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The V1 BaseTrainer.train body never wrote scalars via TF's ambient
default writer, so the file_writer + as_default() block in __run_training
served no purpose. Verified with grep: no tf.summary.scalar or
write_tensorboard_scalar callers anywhere in gigl/src/training/v1/.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Replace function-based tensorboard helpers with the new
TensorBoardWriter class. Collapses two back-to-back scalar writes per
log step into a single dict-style log() call.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…riter

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…nsorBoardWriter

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…TensorBoardWriter

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant