caliper.watch¶
caliper.watch hooks a torch module so that the outputs and, if asked, the gradients of chosen modules show as live views at a chosen interval.
| Field | Value |
|---|---|
| ID | STR-45 |
| Status | Shipped |
| Scope | Core |
| Pillar | Live Data, Streaming and Recordings |
| Sprint | None |
| Depends On | Caliper LIB (STR-01) |
| Unblocks | Step History and Time Cursor (SPC-46)Run Control Under Watch ( STR-55) |
| Docs | View Calls, watch |
| Branches | None |
| Design | None |
Coverage Ledger¶
- design/instruments.md, under Watch Hook. The call caliper.watch(model, optimizer) is the one Caliper line of the training script.
- design/instruments.md, under Current Watch. Today caliper.watch hooks modules and publishes tensor views, but no series, scene or parameter.
- design/instruments.md, under Watch Extension. With an optimizer, caliper.watch starts the server, adds a step pre-hook and registers lr, loss and the scene.
- design/instruments.md, under Published Names. The hook publishes the series loss and lr, the parameter lr and the scene model.
- design/instruments.md, under Acceptance Test. A test drives caliper-mcp against a hidden app and a script that calls caliper.watch.
- View Calls, watch. watch hooks a torch module so that its activations and gradients are shown as views.