pytorch/tools/onnx/templates/rules.py.in

22 lines
292 B
Python

"""
${generated_comment}
"""
import dataclasses
from typing import Tuple
# flake8: noqa
from torch.onnx._internal.diagnostics import infra
"""
${generated_rule_class_comment}
"""
${rule_classes}
@dataclasses.dataclass
class _POERules(infra.RuleCollection):
${rules}
rules = _POERules()