def reset_cudnn_benchmark():
    """Ensures that the `torch.backends.cudnn.benchmark` setting gets reset before the next test runs."""
    yield
    torch.backends.cudnn.benchmark = False
Ensures that the `torch.backends.cudnn.benchmark` setting gets reset before the next test runs.
tests/tests_fabric/conftest.py