Home
last modified time | relevance | path

Searched refs:axis_elems (Results 1 – 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/compiler/mlir/tosa/transforms/
Dlegalize_tf.cc478 ElementsAttr axis_elems; in matchAndRewrite() local
479 if (!matchPattern(tf_argmax_op.dimension(), m_Constant(&axis_elems))) in matchAndRewrite()
482 int32_t axis = axis_elems.getValues<IntegerAttr>()[0].getInt(); in matchAndRewrite()
643 ElementsAttr axis_elems; in matchAndRewrite() local
644 if (!matchPattern(tf_concatv2_op.axis(), m_Constant(&axis_elems))) in matchAndRewrite()
647 int32_t axis = axis_elems.getValues<IntegerAttr>()[0].getInt(); in matchAndRewrite()
2046 ElementsAttr axis_elems; in matchAndRewrite() local
2047 if (!matchPattern(tf_reverse_op.axis(), m_Constant(&axis_elems))) in matchAndRewrite()
2052 if (axis_elems.getNumElements() == 0) { in matchAndRewrite()
2057 for (int i = 0; i < axis_elems.getNumElements(); i++) { in matchAndRewrite()
[all …]
Dlegalize_tfl.cc2948 ElementsAttr axis_elems; in matchAndRewrite() local
2949 if (!matchPattern(tfl_reverse_op.axis(), m_Constant(&axis_elems))) in matchAndRewrite()
2954 if (axis_elems.getNumElements() == 0) { in matchAndRewrite()
2959 for (int i = 0; i < axis_elems.getNumElements(); i++) { in matchAndRewrite()
2960 int64_t axis_val = axis_elems.getValues<APInt>()[i].getSExtValue(); in matchAndRewrite()