Home
last modified time | relevance | path

Searched refs:reduce_shape (Results 1 – 10 of 10) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dreduction_layout_normalizer.cc43 const Shape &reduce_shape = reduce->shape(); in HandleReduce() local
45 if (!reduce_shape.IsArray()) { in HandleReduce()
57 std::vector<int64> new_reduce_shape_layout(reduce_shape.rank()); in HandleReduce()
59 LayoutUtil::MakeLogicalToPhysical(reduce_shape.layout()); in HandleReduce()
88 new_reduce_shape_layout[reduce_shape.rank() - physical_reduce_dim - 1] = in HandleReduce()
100 reduce_shape.element_type(), new_reduce_shape_data, in HandleReduce()
112 if (new_reduce_shape != reduce_shape) { in HandleReduce()
115 new_reduce = HloInstruction::CreateBitcast(reduce_shape, wrapped_reduce); in HandleReduce()
Dreduction_degenerate_dim_remover.cc42 const Shape &reduce_shape = instr->shape(); in HandleReduce() local
52 ShapeUtil::DropDegenerateDimensions(reduce_shape); in HandleReduce()
70 HloInstruction::CreateBitcast(reduce_shape, reduced_op); in HandleReduce()
81 if (canonical_reduce_shape != reduce_shape) { in HandleReduce()
84 new_reduce = HloInstruction::CreateBitcast(reduce_shape, wrapped_reduce); in HandleReduce()
/external/tensorflow/tensorflow/compiler/xla/service/
Dtree_reduction_rewriter.cc48 const Shape &reduce_shape = hlo->shape(); in HandleReduce() local
49 if (!reduce_shape.IsArray()) { in HandleReduce()
89 HloInstruction::CreateReduce(reduce_shape, reduce_window, initial_value, in HandleReduce()
Ddynamic_dimension_inference_test.cc204 auto reduce_shape = ShapeUtil::MakeShape(F32, {2}); in TEST_F() local
218 reduce_shape, negate, init, {0, 2}, GetAdd())); in TEST_F()
236 auto reduce_shape = ShapeUtil::MakeShape(F32, {1, 2}); in TEST_F() local
250 HloInstruction::CreateReduce(reduce_shape, negate, init, {1}, GetAdd())); in TEST_F()
269 auto reduce_shape = ShapeUtil::MakeShape(F32, {1, 2}); in TEST_F() local
293 ShapeUtil::MakeTupleShape({reduce_shape, reduce_shape}), in TEST_F()
Ddynamic_padder_test.cc116 auto reduce_shape = ShapeUtil::MakeShape(F32, {2}); in TEST_F() local
130 reduce_shape, negate, init, {0, 2}, GetScalarAddComputation())); in TEST_F()
347 auto reduce_shape = ShapeUtil::MakeShape(F32, {3, 5}); in TEST_F() local
357 reduce_shape, input, init, window, GetScalarAddComputation())); in TEST_F()
Dalgebraic_simplifier.cc4818 Shape reduce_shape = ShapeUtil::FilterDimensions( in HandleReduceWindow() local
4823 simplifier_->UpdateLayout(&reduce_shape); in HandleReduceWindow()
4826 /*shape=*/reduce_shape, in HandleReduceWindow()
Dalgebraic_simplifier_test.cc2264 Shape reduce_shape = ShapeUtil::MakeShape(F32, {kParamLength}); in TEST_F() local
2269 reduce_shape, Concatenate, zero, {1, 2}, add_computation)); in TEST_F()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/tests/
Dgpu_ldg_test.cc130 auto reduce_shape = ShapeUtil::MakeShape(F32, {32}); in TEST_F() local
134 reduce_shape, in TEST_F()
141 HloInstruction::CreateUnary(reduce_shape, HloOpcode::kSin, reduce)); in TEST_F()
/external/tensorflow/tensorflow/compiler/xla/service/spmd/
Dspmd_partitioner.cc2742 auto reduce_shape, in HandleReduce()
2751 reduce_shape, input_hlos, inits, hlo->dimensions(), hlo->to_apply())); in HandleReduce()
2777 ShapeUtil::GetTupleElementShape(reduce_shape, i), local_reduce, in HandleReduce()
2796 reduce_shape, all_gathered_partial_results, inits, in HandleReduce()
Ddot_handler.cc3296 TF_ASSIGN_OR_RETURN(auto reduce_shape, in MoveUsersIntoWindowedDotGeneralLoopOnNonContractingDimensions()
3301 *reduce_shape.mutable_layout() = reduce_outside->shape().layout(); in MoveUsersIntoWindowedDotGeneralLoopOnNonContractingDimensions()
3345 reduce_shape, {operand0, operand1})); in MoveUsersIntoWindowedDotGeneralLoopOnNonContractingDimensions()