forked from OSchip/llvm-project
2927297a1c
Motivation for this change is to remove redundant TF type attributes for TensorFlow ops. For example, tf$T: "tfdtype$DT_FLOAT". Type attributes can be derived using the MLIR operand or result MLIR types, attribute names and their mapping. This will also allow constant folding of instructions generated within MLIR (and not imported from TensorFlow) without adding type attributes for the instruction. Derived attributes are populated while exporting MLIR to TF GraphDef using auto-generated populators. Populators are only available for the ops that are generated by the TableGen. Also, fixed Operator::getNumArgs method to exclude derived attributes as they are not part of the arguments. TESTED with unit test PiperOrigin-RevId: 232531561 |
||
---|---|---|
.. | ||
AffineOps | ||
Analysis | ||
Dialect | ||
EDSC | ||
ExecutionEngine | ||
IR | ||
LLVMIR | ||
Parser | ||
StandardOps | ||
SuperVectorOps | ||
Support | ||
TableGen | ||
Target/LLVMIR | ||
Transforms | ||
Translation |