stormlog.tensorflow.diagnose
Diagnostic bundle builder for the TensorFlow Stormlog diagnose command.
Functions
|
Build diagnostic summary and risk flags from current state. |
|
Collect system and GPU data for the diagnostic bundle. |
|
Build the full diagnostic bundle and write all artifact files. |
|
Run tracker for the given duration and return timeline data. |
- stormlog.tensorflow.diagnose.collect_environment(device=None)[source]
Collect system and GPU data for the diagnostic bundle.
- Parameters:
device (str | None)
- Return type:
Dict[str, Any]
- stormlog.tensorflow.diagnose.run_timeline_capture(device, duration_seconds, interval)[source]
Run tracker for the given duration and return timeline data. Returns empty timeline if duration_seconds <= 0 or on error.
- Parameters:
device (str | None)
duration_seconds (float)
interval (float)
- Return type:
Dict[str, List[float]]
- stormlog.tensorflow.diagnose.build_diagnostic_summary(device=None)[source]
Build diagnostic summary and risk flags from current state. Returns (summary_dict, risk_detected).
- Parameters:
device (str | None)
- Return type:
Tuple[Dict[str, Any], bool]
- stormlog.tensorflow.diagnose.run_diagnose(output, device, duration, interval, command_line)[source]
Build the full diagnostic bundle and write all artifact files. Returns (artifact_dir, exit_code). exit_code: 0 = success no risk, 1 = failure, 2 = success with memory risk.
- Parameters:
output (str | None)
device (str | None)
duration (float)
interval (float)
command_line (str)
- Return type:
Tuple[Path, int]