HomePhabricator

ODS: Generate named accessors for raw attributes

Authored by jpienaar on Dec 9 2019, 10:28 AM.

Description

ODS: Generate named accessors for raw attributes

Currently named accessors are generated for attributes returning a consumer
friendly type. But sometimes the attributes are used while transforming an
existing op and then the returned type has to be converted back into an
attribute or the raw getAttr needs to be used. Generate raw named accessor
for attributes to reference the raw attributes without having to use the string
interface for better compile time verification. This allows calling
blahAttr() instead of getAttr("blah").

Raw here refers to returning the underlying storage attribute.

PiperOrigin-RevId: 284583426

Event Timeline

A. Unique TensorFlower <gardener@tensorflow.org> committed rG89cef725f4e0: ODS: Generate named accessors for raw attributes (authored by jpienaar).Dec 9 2019, 10:29 AM