Home
last modified time | relevance | path

Searched refs:axis_val (Results 1 – 5 of 5) sorted by relevance

/external/tensorflow/tensorflow/compiler/mlir/tosa/transforms/
Dlegalize_common.cc2676 auto axis_val = axis.getInt(); in convertReduceOpCommon() local
2677 if (axis_val < 0) axis_val += input_rank; in convertReduceOpCommon()
2678 axes.push_back(axis_val); in convertReduceOpCommon()
2698 for (auto axis_val : axes) { in convertReduceOpCommon() local
2699 if (axis_val < 0) axis_val += input_rank; in convertReduceOpCommon()
2700 auto axis_attr = rewriter.getI64IntegerAttr(axis_val); in convertReduceOpCommon()
2702 shape_vec[axis_val] = 1; in convertReduceOpCommon()
2902 int64_t axis_val = axes_elems.getValues<IntegerAttr>()[i].getInt(); in convertReduceMeanOp() local
2903 if (axis_val < 0) axis_val += input_rank; in convertReduceMeanOp()
2904 num_elems_on_reduced_axis *= input_type.getShape()[axis_val]; in convertReduceMeanOp()
Dlegalize_tf.cc2058 int64_t axis_val = axis_elems.getValues<IntegerAttr>()[i].getInt(); in matchAndRewrite() local
2059 if (axis_val < 0) axis_val += input_rank; in matchAndRewrite()
2060 auto axis_attr = rewriter.getI64IntegerAttr(axis_val); in matchAndRewrite()
Dlegalize_tfl.cc2960 int64_t axis_val = axis_elems.getValues<APInt>()[i].getSExtValue(); in matchAndRewrite() local
2961 if (axis_val < 0) axis_val += input_rank; in matchAndRewrite()
2962 auto axis_attr = rewriter.getI64IntegerAttr(axis_val); in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_ops_n_z.cc165 int64_t axis_val = axis.getInt(); in InferOneHotOpType() local
168 if (axis_val < -1) return unranked_ty; in InferOneHotOpType()
174 if (axis_val == -1) axis_val = shape.size(); in InferOneHotOpType()
181 shape.insert(shape.begin() + axis_val, depth_val); in InferOneHotOpType()
/external/tensorflow/tensorflow/compiler/mlir/tosa/g3doc/
Dlegalization.md662 size_t axis_val = positive_axis(%axis.as_constant()[i])
663 %output = tosa.REVERSE(%output) {axis=%axis_val}