llvm-project/mlir
Jacques Pienaar 34c6f8c6e4 Add default attr value & define tf.AvgPool op and use pattern for rewrite.
Add default values to attributes, to allow attribute being left unspecified.  The attr getter will always return an attribute so callers need not check for it, if the attribute is not set then the default will be returned (at present the default will be constructed upon query but this will be changed).

Add op definition for tf.AvgPool in ops.td, rewrite matcher using pattern using attribute matching & transforms. Adding some helper functions to make it simpler.

Handle attributes with dialect prefix and map them to getter without dialect prefix.

Note: VerifyAvgPoolOp could probably be autogenerated by know given the predicate specification on attributes, but deferring that to a follow up.
PiperOrigin-RevId: 230364857
2019-03-29 15:29:59 -07:00
..
g3doc Cleanup EDSCs 2019-03-29 15:27:58 -07:00
include/mlir Add default attr value & define tf.AvgPool op and use pattern for rewrite. 2019-03-29 15:29:59 -07:00
lib Add default attr value & define tf.AvgPool op and use pattern for rewrite. 2019-03-29 15:29:59 -07:00
test AffineExpr pretty print - add missing handling to print expr * - 1 as -expr 2019-03-29 15:28:44 -07:00
tools Add default attr value & define tf.AvgPool op and use pattern for rewrite. 2019-03-29 15:29:59 -07:00
utils Standardize naming of statements -> instructions, revisting the code base to be 2019-03-29 14:44:30 -07:00
.clang-format [mlir] add .clang-format 2019-03-29 12:41:43 -07:00
LICENSE.TXT Continue sketching out basic infrastructure, including an input and output 2019-03-29 12:23:51 -07:00