harbor run -t openthoughts/tasktrove-exp-rpt-nemotron-cpp-nemotron-cpp-4282harbor download openthoughts/tasktrove-exp-rpt-nemotron-cpp-nemotron-cpp-4282Task: Implement a TensorBoard-like statistics logging handler (TensorBoardStatsHandler) under /app/ that integrates with Ignite's Engine to log metrics to a SummaryWriter, with support for configurable epoch and iteration logging, transforms, and state attributes. The implementation must be compatible with the provided tests, including the ability to be swapped with mocks in tests.
What you need to implement
Constructor
Writers (mockable)
Logging controls and transforms
Engine integration
attach(const std::shared_ptrignite::engine::Engine& engine)
close()
Default behavior (when no transforms are set)
Epoch and iteration logging
Acceptance criteria (demonstrated by tests)
Notes
Deliverables
These should compile against the provided test code and enable the tests to pass.