Home
last modified time | relevance | path

Searched refs:reduce_window (Results 1 – 15 of 15) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/service/
Dalgebraic_simplifier.cc230 Status HandleReduceWindow(HloInstruction* reduce_window) override;
3084 HloInstruction* reduce_window) { in HandleReduceWindow() argument
3085 if (ShapeUtil::IsZeroElementArray(reduce_window->operand(0)->shape())) { in HandleReduceWindow()
3087 reduce_window, in HandleReduceWindow()
3088 HloInstruction::CreateBroadcast(reduce_window->shape(), in HandleReduceWindow()
3089 reduce_window->mutable_operand(1), {})); in HandleReduceWindow()
3091 auto operand = reduce_window->mutable_operand(0); in HandleReduceWindow()
3092 const Window& window = reduce_window->window(); in HandleReduceWindow()
3093 auto function = reduce_window->to_apply(); in HandleReduceWindow()
3095 TF_RET_CHECK(ShapeUtil::IsScalar(reduce_window->shape())); in HandleReduceWindow()
[all …]
Ddynamic_dimension_inference.cc356 HloInstruction* reduce_window = hlo; in HandleReduceWindow() local
358 reduce_window->window().dimensions(dimension); in HandleReduceWindow()
363 reduce_window->ToString()); in HandleReduceWindow()
366 parent_->SetDynamicSize(reduce_window, {}, dimension, dynamic_size); in HandleReduceWindow()
Ddfs_hlo_visitor_with_default.h167 Status HandleReduceWindow(HloInstructionPtr reduce_window) override { in HandleReduceWindow() argument
168 return DefaultAction(reduce_window); in HandleReduceWindow()
Dhlo_cost_analysis.cc303 const HloInstruction* reduce_window) { in HandleReduceWindow() argument
304 const Window& window = reduce_window->window(); in HandleReduceWindow()
305 auto function = reduce_window->to_apply(); in HandleReduceWindow()
317 ShapeUtil::ElementsIn(reduce_window->shape()); in HandleReduceWindow()
Dconvolution_group_converter.cc300 auto reduce_window = add(HloInstruction::CreateReduceWindow( in HandleBatchGroupCount() local
304 Shape convert_back_shape = reduce_window->shape(); in HandleBatchGroupCount()
309 HloInstruction::CreateConvert(convert_back_shape, reduce_window); in HandleBatchGroupCount()
Dhlo_verifier.cc622 Status ShapeVerifier::HandleReduceWindow(HloInstruction* reduce_window) { in HandleReduceWindow() argument
624 reduce_window, in HandleReduceWindow()
626 reduce_window->operand(0)->shape(), in HandleReduceWindow()
627 reduce_window->operand(1)->shape(), reduce_window->window(), in HandleReduceWindow()
628 reduce_window->to_apply()->ComputeProgramShape()))); in HandleReduceWindow()
632 : SameElementTypesForOperandsAndToApplyParameters(*reduce_window, in HandleReduceWindow()
Dhlo_evaluator_typed_visitor.h1961 Status HandleReduceWindow(HloInstruction* reduce_window) override { in HandleReduceWindow() argument
1962 auto operand = reduce_window->operand(0); in HandleReduceWindow()
1963 const Window& window = reduce_window->window(); in HandleReduceWindow()
1964 HloComputation* function = reduce_window->to_apply(); in HandleReduceWindow()
1968 /*operand_shape=*/reduce_window->operand(0)->shape(), in HandleReduceWindow()
1969 /*init_value=*/reduce_window->operand(1)->shape(), window, in HandleReduceWindow()
1972 ShapeUtil::Compatible(reduce_window->shape(), inferred_return_shape)) in HandleReduceWindow()
1974 << ShapeUtil::HumanStringWithLayout(reduce_window->shape()) in HandleReduceWindow()
1979 parent_->GetEvaluatedLiteralFor(reduce_window->operand(0)); in HandleReduceWindow()
1982 parent_->GetEvaluatedLiteralFor(reduce_window->operand(1)); in HandleReduceWindow()
[all …]
Dhlo_cost_analysis.h101 Status HandleReduceWindow(const HloInstruction* reduce_window) override;
Dhlo_verifier.h84 Status HandleReduceWindow(HloInstruction* reduce_window) override;
Ddynamic_dimension_inference_test.cc585 auto* reduce_window = in TEST_F() local
597 EXPECT_EQ(inference_->GetDynamicSize(reduce_window, {}, 0), size_param); in TEST_F()
Dalgebraic_simplifier_test.cc3619 HloInstruction* reduce_window = in TEST_F() local
3627 EXPECT_EQ(root, reduce_window); in TEST_F()
3705 HloInstruction* reduce_window = in TEST_F() local
3713 EXPECT_EQ(root, reduce_window); in TEST_F()
/external/tensorflow/tensorflow/compiler/tests/
Dreduce_window_test.py38 output = xla.reduce_window(placeholder, init, reducer, **kwargs)
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dir_emitter.h123 const HloReduceWindowInstruction* reduce_window,
163 Status HandleReduceWindow(HloInstruction* reduce_window) override;
Dir_emitter.cc641 const HloReduceWindowInstruction* reduce_window, in EmitElementalReduceWindow() argument
644 const HloInstruction* operand = reduce_window->operand(0); in EmitElementalReduceWindow()
645 const Window& window = reduce_window->window(); in EmitElementalReduceWindow()
654 Store(Load(GetEmittedValueFor(reduce_window->operand(1))), in EmitElementalReduceWindow()
657 llvm_ir::ForLoopNest loops(IrName(reduce_window, "inner"), &b_); in EmitElementalReduceWindow()
720 *reduce_window->to_apply(), {Load(accumulator_address), input_value}, in EmitElementalReduceWindow()
728 Status IrEmitter::HandleReduceWindow(HloInstruction* reduce_window) { in HandleReduceWindow() argument
742 return DefaultAction(reduce_window); in HandleReduceWindow()
/external/tensorflow/tensorflow/compiler/tf2xla/python/
Dxla.py350 def reduce_window(operand, function