Home
last modified time | relevance | path

Searched refs:shape_vals (Results 1 – 4 of 4) sorted by relevance

/external/tensorflow/tensorflow/compiler/mlir/tosa/transforms/
Dlegalize_tfl.cc1502 SmallVector<int64_t, 2> shape_vals({num_batch, num_elems}); in matchAndRewrite() local
1505 RankedTensorType::get(shape_vals, input_type.getElementType()); in matchAndRewrite()
1508 rewriter.getI64ArrayAttr(shape_vals)); in matchAndRewrite()
1637 SmallVector<int64_t> shape_vals; in matchAndRewrite() local
1644 shape_vals.resize(output_type.getRank(), -1); in matchAndRewrite()
1646 for (auto dim : shape_attr.getValues<int32_t>()) shape_vals.push_back(dim); in matchAndRewrite()
1651 if (output_type.getRank() != shape_vals.size()) return failure(); in matchAndRewrite()
1653 if (shape_vals[i] == -1) shape_vals[i] = output_type.getDimSize(i); in matchAndRewrite()
1659 for (auto val : shape_vals) in matchAndRewrite()
1663 ArrayAttr new_shape_attr = rewriter.getI64ArrayAttr(shape_vals); in matchAndRewrite()
Dlegalize_tf.cc670 SmallVector<int64_t> shape_vals; in matchAndRewrite() local
672 shape_vals.push_back(output_type.getShape()[i]); in matchAndRewrite()
674 ArrayAttr shape_attr = rewriter.getI64ArrayAttr(shape_vals); in matchAndRewrite()
Dlegalize_common.cc370 SmallVector<int64_t> begin_vals, size_vals, shape_vals; in convertUnpackOp() local
379 shape_vals.push_back(transposed_input_shape[j]); in convertUnpackOp()
394 RankedTensorType::get(shape_vals, in convertUnpackOp()
396 a2_slice_op.getResult(), rewriter.getI64ArrayAttr(shape_vals)); in convertUnpackOp()
/external/tensorflow/tensorflow/compiler/mlir/tosa/g3doc/
Dlegalization.md1020 vector <size_t> begin_vals, size_vals, shape_vals
1028 shape_vals.push_back(transposed_value.shape[j])
1032 … %output_arr[i] = %tosa.RESHAPE(%slice) {new_shape=shape_vals} {begin=begin_vals, size=size_vals}