Skip to content

System information and logging

system_info

system_info() -> dict[str, Any]

Describe this machine, in the fields Visin's benchmark page reads.

system_metrics

system_metrics() -> dict[str, Any]

A snapshot of what this process and machine are using right now.

Shaped for the run's System tab, which reads it from each epoch's results["system_info"]: memory_used_gb and memory_max_gb, and gpu.gpu_0 onwards with memory, temperature, power and fan speed.

enable_console_logging

enable_console_logging(level: int | str = logging.INFO, stream: TextIO | None = None) -> None

Print visin's log lines: the run it created or resumed, anything it could not send, and its summary at finish.

visin logs through :mod:logging under the visin logger and, as a library should, adds no handler of its own, so without this only warnings reach the console. Pass stream=sys.stdout to keep the lines in order with a script's own print output. Calling it again replaces the handler rather than printing every line twice.