HomePhabricator

Unique trait list during ODS Operator trait construction

Authored by jpienaar on Dec 19 2019, 4:43 PM.

Description

Unique trait list during ODS Operator trait construction

Concatting lists in TableGen is easy, creating unique lists less so. There is no reason for duplicated op traits so we could throw an error instead but duplicates could occur due to concatting different list of traits in ODS (e.g., for convenience reasons), so just dedup them during Operator trait construction instead.

PiperOrigin-RevId: 286488423

Event Timeline

A. Unique TensorFlower <gardener@tensorflow.org> committed rGb6d54a1ba3f7: Unique trait list during ODS Operator trait construction (authored by jpienaar).Dec 19 2019, 4:44 PM