You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
518 B
22 lines
518 B
5 months ago
|
import torch._C._lazy
|
||
|
|
||
|
|
||
|
def reset():
|
||
|
"""Resets all metric counters."""
|
||
|
torch._C._lazy._reset_metrics()
|
||
|
|
||
|
|
||
|
def counter_names():
|
||
|
"""Retrieves all the currently active counter names."""
|
||
|
return torch._C._lazy._counter_names()
|
||
|
|
||
|
|
||
|
def counter_value(name: str):
|
||
|
"""Return the value of the counter with the speficied name"""
|
||
|
return torch._C._lazy._counter_value(name)
|
||
|
|
||
|
|
||
|
def metrics_report():
|
||
|
"""Return the combined (lazy core and backend) metric report"""
|
||
|
return torch._C._lazy._metrics_report()
|