[TableGen] Enforce constraints on attributes
Previously, attribute constraints are basically unused: we set true for almost anything. This CL refactors common attribute kinds and sets constraints on them properly. And fixed verification failures found by this change. A noticeable one is that certain TF ops' attributes are required to be 64-bit integer, but the corresponding TFLite ops expect 32-bit integer attributes. Added bitwidth converters to handle this difference. -- PiperOrigin-RevId: 241944008
Loading
Please sign in to comment