Files
fotoplaner/venv/lib/python3.12/site-packages/torch/_lazy/metrics.py
T
anders 16c54c6653 Tilføjet venv med docling og afhængigheder
Testfiler opdelt i PNG og previews
2026-10-27 12:20:23 +01:00

22 lines
553 B
Python

import torch._C._lazy
def reset() -> None:
"""Resets all metric counters."""
torch._C._lazy._reset_metrics()
def counter_names() -> list[str]:
"""Retrieves all the currently active counter names."""
return torch._C._lazy._counter_names()
def counter_value(name: str) -> int:
"""Return the value of the counter with the specified name"""
return torch._C._lazy._counter_value(name)
def metrics_report() -> str:
"""Return the combined (lazy core and backend) metric report"""
return torch._C._lazy._metrics_report()