HomePhabricator

Enable autogenerating OpInterface method declarations

Authored by jpienaar on Sep 30 2019, 12:42 PM.

Description

Enable autogenerating OpInterface method declarations

Add DeclareOpInterfaceFunctions to enable specifying whether OpInterfaceMethods
for an OpInterface should be generated automatically. This avoids needing to
declare the extra methods, while also allowing adding function declaration by way of trait/inheritance.

Most of this change is mechanical/extracting classes to be reusable.

PiperOrigin-RevId: 272042739

Event Timeline

A. Unique TensorFlower <gardener@tensorflow.org> committed rG0b81eb928b38: Enable autogenerating OpInterface method declarations (authored by jpienaar).Sep 30 2019, 12:42 PM