mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 00:21:07 +01:00
Part of: #123062 Ran lintrunner on: - `test/jit_hooks` - `test/lazy` - `test/linear.py` - `test/load_torchscript_model.py` - `test/mkl_verbose.py` - `test/mkldnn_verbose.py` with command: ```bash lintrunner -a --take UFMT --all-files ``` Co-authored-by: Edward Z. Yang <ezyang@fb.com> Pull Request resolved: https://github.com/pytorch/pytorch/pull/123807 Approved by: https://github.com/ezyang
9 lines
200 B
Python
9 lines
200 B
Python
# Owner(s): ["oncall: jit"]
|
|
|
|
import torch._lazy.metrics
|
|
|
|
|
|
def test_metrics():
|
|
names = torch._lazy.metrics.counter_names()
|
|
assert len(names) == 0, f"Expected no counter names, but got {names}"
|