Home
last modified time | relevance | path

Searched refs:dynamic_slice (Results 1 – 17 of 17) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/tests/
Ddot_operation_test.cc965 auto dynamic_slice = DynamicSlice(lhs_constant, {one, zero}, {1, 6}); in XLA_TEST_F() local
970 DotGeneral(dynamic_slice, rhs_constant, dot_dnums); in XLA_TEST_F()
993 auto dynamic_slice = DynamicSlice(rhs_constant, {zero, one}, {6, 1}); in XLA_TEST_F() local
998 DotGeneral(lhs_constant, dynamic_slice, dot_dnums); in XLA_TEST_F()
1023 auto dynamic_slice = DynamicSlice(lhs_constant, {zero, one}, {6, 1}); in XLA_TEST_F() local
1028 DotGeneral(dynamic_slice, rhs_constant, dot_dnums); in XLA_TEST_F()
1051 auto dynamic_slice = DynamicSlice(rhs_constant, {one, zero}, {1, 6}); in XLA_TEST_F() local
1056 DotGeneral(lhs_constant, dynamic_slice, dot_dnums); in XLA_TEST_F()
1084 auto dynamic_slice = DynamicSlice(lhs_constant, {zero, one}, {6, 1}); in XLA_TEST_F() local
1089 DotGeneral(dynamic_slice, rhs_constant, dot_dnums); in XLA_TEST_F()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_cost_analysis.cc260 const HloInstruction* dynamic_slice) { in HandleDynamicSlice() argument
262 GetShapeSize(dynamic_slice->shape()) * 2 + in HandleDynamicSlice()
263 GetShapeSize(dynamic_slice->operand(1)->shape()); in HandleDynamicSlice()
264 SetOutputBytesAccessed(GetShapeSize(dynamic_slice->shape())); in HandleDynamicSlice()
265 SetOperandBytesAccessed(0, GetShapeSize(dynamic_slice->shape())); in HandleDynamicSlice()
266 SetOperandBytesAccessed(1, GetShapeSize(dynamic_slice->operand(1)->shape())); in HandleDynamicSlice()
Ddfs_hlo_visitor_with_default.h170 Status HandleDynamicSlice(HloInstructionPtr dynamic_slice) override { in HandleDynamicSlice() argument
171 return DefaultAction(dynamic_slice); in HandleDynamicSlice()
Dalgebraic_simplifier.cc355 Status HandleDynamicSlice(HloInstruction* dynamic_slice) override;
2032 HloDynamicSliceInstruction* dynamic_slice = in OptimizeDotOfGather() local
2061 auto indices_type = dynamic_slice->operand(1)->shape().element_type(); in OptimizeDotOfGather()
2067 dynamic_slice->mutable_operand(1 + index_of_non_zero_start); in OptimizeDotOfGather()
2069 dynamic_slice->mutable_operand(1 + index_of_zero_start); in OptimizeDotOfGather()
4342 HloInstruction* dynamic_slice) { in HandleDynamicSlice() argument
4343 auto operand = dynamic_slice->mutable_operand(0); in HandleDynamicSlice()
4344 if (ShapeUtil::IsScalar(dynamic_slice->shape())) { in HandleDynamicSlice()
4345 return ReplaceInstruction(dynamic_slice, operand); in HandleDynamicSlice()
4349 if (SameShape(operand, dynamic_slice)) { in HandleDynamicSlice()
[all …]
Dhlo_evaluator_typed_visitor.h1600 Status HandleDynamicSlice(HloInstruction* dynamic_slice) override {
1601 auto operand = dynamic_slice->operand(0);
1602 auto start_indices = dynamic_slice->operand(1);
1603 auto result_shape = dynamic_slice->shape();
1608 Cast<HloDynamicSliceInstruction>(dynamic_slice)->index_shapes(),
1609 dynamic_slice->dynamic_slice_sizes()));
1622 parent_->evaluated_[dynamic_slice],
1625 absl::MakeConstSpan(dynamic_slice->operands()).subspan(1),
1630 parent_->evaluated_[dynamic_slice],
1633 absl::MakeConstSpan(dynamic_slice->operands()).subspan(1),
[all …]
Dhlo_cost_analysis.h105 Status HandleDynamicSlice(const HloInstruction* dynamic_slice) override;
Dhlo_verifier.cc845 Status ShapeVerifier::HandleDynamicSlice(HloInstruction* dynamic_slice) { in HandleDynamicSlice() argument
847 dynamic_slice, in HandleDynamicSlice()
849 dynamic_slice->operand(0)->shape(), in HandleDynamicSlice()
850 Cast<HloDynamicSliceInstruction>(dynamic_slice)->index_shapes(), in HandleDynamicSlice()
851 dynamic_slice->dynamic_slice_sizes())); in HandleDynamicSlice()
Dhlo_verifier.h88 Status HandleDynamicSlice(HloInstruction* dynamic_slice) override;
/external/tensorflow/tensorflow/compiler/tests/
Dxla_ops_test.py506 xla.dynamic_slice,
519 output = xla.dynamic_slice(
533 output = xla.dynamic_slice(
/external/tensorflow/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/IR/
Dhlo_ops.cc1416 LogicalResult matchAndRewrite(DynamicSliceOp dynamic_slice, in matchAndRewrite()
1418 Value input = dynamic_slice.operand(); in matchAndRewrite()
1423 for (Value start : dynamic_slice.start_indices()) { in matchAndRewrite()
1433 auto loc = dynamic_slice.getLoc(); in matchAndRewrite()
1438 slice_start_indices, dynamic_slice.slice_sizes(), &rewriter); in matchAndRewrite()
1443 rewriter.replaceOp(dynamic_slice, {result}); in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/tf2xla/python/
Dxla.py320 dynamic_slice = gen_xla_ops.xla_dynamic_slice variable
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dir_emitter.h154 Status HandleDynamicSlice(HloInstruction* dynamic_slice) override;
Dir_emitter.cc1969 Status IrEmitter::HandleDynamicSlice(HloInstruction* dynamic_slice) { in HandleDynamicSlice() argument
1970 if (ShapeUtil::IsScalar(dynamic_slice->shape())) { in HandleDynamicSlice()
1971 TF_RETURN_IF_ERROR(EmitTargetAddressForOp(dynamic_slice)); in HandleDynamicSlice()
1972 return EmitMemcpy(*dynamic_slice->operand(0), *dynamic_slice); in HandleDynamicSlice()
1974 return DefaultAction(dynamic_slice); in HandleDynamicSlice()
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dmhlo_to_lhlo_with_xla.cc1255 TF_ASSIGN_OR_RETURN(auto dynamic_slice, in EmitDynamicSliceOp()
1258 dynamic_slice.slice_sizesAttr( in EmitDynamicSliceOp()
1260 return dynamic_slice; in EmitDynamicSliceOp()
/external/tensorflow/tensorflow/compiler/mlir/hlo/include/mlir-hlo/Dialect/mhlo/IR/
Dlhlo_ops.td312 def LHLO_DynamicSliceOp: LHLO_Op<"dynamic_slice",
/external/tensorflow/tensorflow/compiler/mlir/hlo/tests/
Dops.mlir765 // CHECK-LABEL: func @dynamic_slice
766 func @dynamic_slice(%arg0: tensor<3x4xi32>, %arg1: tensor<i64>, %arg2: tensor<i64>) -> tensor<1x4xi…
/external/tensorflow/tensorflow/compiler/mlir/xla/tests/hlo_to_lhlo_with_xla/
Dops.mlir831 // CHECK: "lmhlo.dynamic_slice"(%arg0, %arg1, %arg2, %{{.*}}) {slice_sizes = dense<[1, 4]> : tensor…