Home
last modified time | relevance | path

Searched refs:getIntValues (Results 1 – 25 of 30) sorted by relevance

12

/external/tensorflow/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/IR/
Dhlo_ops.cc219 for (auto it : llvm::zip(dnums.start_index_map().getIntValues(), in matchAndRewrite()
220 index.getIntValues())) { in matchAndRewrite()
242 dnums.collapsed_slice_dims().getIntValues(), in matchAndRewrite()
1527 for (auto it : llvm::zip(rhsVal.getIntValues(), lhsVal.getIntValues())) { in fold()
1571 for (auto it : llvm::zip(rhsVal.getIntValues(), lhsVal.getIntValues())) { in fold()
1604 for (auto it : llvm::zip(rhsVal.getIntValues(), lhsVal.getIntValues())) { in fold()
1977 if (llvm::all_of(edge_padding_low().getIntValues(), is_zero) && in fold()
1978 llvm::all_of(edge_padding_high().getIntValues(), is_zero) && in fold()
1979 llvm::all_of(interior_padding().getIntValues(), is_zero)) in fold()
1984 if (llvm::all_of(edge_padding_low().getIntValues(), is_negative) && in fold()
[all …]
Dchlo_ops.cc99 for (const APInt& int_value : broadcast_dimensions_attr.getIntValues()) { in GetBroadcastType()
/external/tensorflow/tensorflow/compiler/mlir/hlo/lib/utils/
Dbroadcast_utils.cc48 broadcast_dims.getIntValues().begin()); in IsLegalNumpyRankedBroadcast()
/external/tensorflow/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/transforms/
Dlegalize_gather_to_torch_index_select.cc88 for (auto it : llvm::enumerate(gather.slice_sizes().getIntValues())) { in matchAndRewrite()
Doptimize_mhlo.cc164 for (auto shapeValue : gather.slice_sizes().getIntValues()) { in matchAndRewrite()
Dlhlo_legalize_to_parallel_loops.cc231 for (const auto& rdim : reduce_op.dimensions().getIntValues()) { in CreateReduceOpInNestedParallelLoops()
557 s_and_s_op.window_dimensions()->getIntValues()) { in InsertWindowLoops()
Dlegalize_to_linalg.cc468 enumerate(broadcast_op.broadcast_dimensions().getIntValues())) { in getIndexingMaps()
610 enumerate(op.broadcast_dimensions().getIntValues())) { in InsertReshapeIfNecessary()
941 for (const auto& dim : dimensions_attr.getIntValues()) { in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dlayout_optimization.cc234 for (const auto& value : perm_attr.getIntValues()) in MoveTransposeBefore()
366 for (const auto& value : attr.getIntValues()) in MoveTransposeAfter()
Dlower_tf.cc1063 for (auto val : block_shape.getIntValues()) { in matchAndRewrite()
1131 auto block_shape_values = llvm::to_vector<4>(block_shape.getIntValues()); in matchAndRewrite()
1159 auto crop_values = llvm::to_vector<4>(crops.getIntValues()); in matchAndRewrite()
1325 for (auto val : out_size_cst.getIntValues()) { in matchAndRewrite()
Dlegalize_hlo.cc1001 for (auto s : attr.getIntValues()) { in IsIotaAttr()
Dshape_inference.cc860 int64_t val = (*dea.getIntValues().begin()).getSExtValue(); in ComputeOutputAsShape()
/external/llvm-project/mlir/unittests/TableGen/
DStructsGenTest.cpp161 for (const auto &valIndexIt : llvm::enumerate(denseAttr.getIntValues())) { in TEST()
/external/llvm-project/mlir/lib/Conversion/LinalgToSPIRV/
DLinalgToSPIRV.cpp130 if (llvm::any_of(llvm::drop_begin(localSize.getIntValues(), 1), in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Ddilated_conv.h128 (*const_op.value().cast<DenseElementsAttr>().getIntValues().begin()) in matchAndRewrite()
Doptimize.cc277 for (auto a : axes_attr.getIntValues()) { in ShapeMatchesReduceWithKeepAxes()
903 for (const auto &dim : perm_values_attr.getIntValues()) in matchAndRewrite()
Dlower_static_tensor_list.cc422 auto int_values = dense_elem_attr.getIntValues(); in matchAndRewrite()
774 for (const auto &dim : dense_elem_attr.getIntValues()) in matchAndRewrite()
Dprepare_tf.cc730 for (const auto &idx : dense_elem_attr.getIntValues()) { in PadStridedSliceAttributeArray()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Dshape_inference_utils.cc394 for (auto element : llvm::enumerate(elements.getIntValues())) in InferReturnTypeComponentsForTFOp()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_ops_a_m.cc322 auto crops_range = crops_attr.getIntValues(); in Verify()
597 for (auto s : s0.getIntValues()) s0_shape.push_back(s.getSExtValue()); in ExtractInputConstShape()
598 for (auto s : s1.getIntValues()) s1_shape.push_back(s.getSExtValue()); in ExtractInputConstShape()
2786 llvm::transform(reductions_value.getIntValues(), in FoldOperandsPermutation()
Dtf_ops_helpers.inc350 for (const auto &value : perm0.getIntValues())
354 for (const auto &value : perm1.getIntValues())
Dtf_ops_n_z.cc320 for (auto index_pair : llvm::enumerate(paddings_value.getIntValues())) { in FoldOperandsPermutation()
609 for (const auto &dim : llvm::enumerate(shape_attr.getIntValues())) { in GetReshapeOutputType()
/external/llvm-project/mlir/include/mlir/IR/
DBuiltinAttributes.h912 llvm::iterator_range<IntElementIterator> getIntValues() const;
916 return getIntValues();
/external/llvm-project/mlir/lib/Dialect/GPU/IR/
DGPUDialect.cpp235 for (auto size : sizeAttr.getIntValues()) in addAsyncDependency()
/external/llvm-project/mlir/lib/IR/
DOperation.cpp1039 if (llvm::any_of(sizeAttr.getIntValues(), [](const APInt &element) { in verifyValueSizeAttr()
/external/tensorflow/tensorflow/compiler/mlir/lite/
Dflatbuffer_import.cc736 for (const auto& dim : llvm::enumerate(shape_attr.getIntValues())) { in ConvertOp()

12