Home
last modified time | relevance | path

Searched refs:slice_sizes (Results 1 – 25 of 35) sorted by relevance

12

/external/tensorflow/tensorflow/core/kernels/
Dsplit_lib_cpu.cc32 const Eigen::DSizes<Eigen::DenseIndex, NDims>& slice_sizes) { in operator ()() argument
34 output = input.slice(slice_indices, slice_sizes); in operator ()()
36 output.device(d) = input.slice(slice_indices, slice_sizes); in operator ()()
53 const Eigen::DSizes<Eigen::DenseIndex, NDims>& slice_sizes) { in DEFINE_CPU_KERNELS()
54 output.device(d) = input.slice(slice_indices, slice_sizes); in DEFINE_CPU_KERNELS()
Dsplit_lib.h31 const Eigen::DSizes<Eigen::DenseIndex, 2>& slice_sizes);
39 const Eigen::DSizes<Eigen::DenseIndex, NDims>& slice_sizes);
48 const Eigen::DSizes<Eigen::DenseIndex, NDims>& slice_sizes);
58 const Eigen::DSizes<Eigen::DenseIndex, NDims>& slice_sizes);
Dslice_op.h32 const Eigen::DSizes<Eigen::DenseIndex, NDIMS>& slice_sizes) { in operator()
42 sizes[i] = slice_sizes[i]; in operator()
46 output.device(d) = input.slice(slice_indices, slice_sizes); in operator()
Dsplit_op.cc169 Eigen::DSizes<Eigen::DenseIndex, NDims> slice_sizes; in operator ()() local
173 slice_sizes[j] = sizes[j]; in operator ()()
180 result_shaped = input_reshaped.slice(slice_indices, slice_sizes); in operator ()()
185 input_reshaped, slice_indices, slice_sizes); in operator ()()
379 Eigen::DSizes<Eigen::DenseIndex, 3> slice_sizes; in Compute() local
382 slice_sizes[j] = sizes[j]; in Compute()
390 slice_indices, slice_sizes); in Compute()
Dsplit_lib_gpu.cu.cc38 const Eigen::DSizes<Eigen::DenseIndex, NDims>& slice_sizes) { in operator ()() argument
39 To32Bit(output).device(d) = To32Bit(input).slice(slice_indices, slice_sizes); in operator ()()
47 const Eigen::DSizes<Eigen::DenseIndex, 2>& slice_sizes) { in operator ()() argument
48 To32Bit(output).device(d) = To32Bit(input).slice(slice_indices, slice_sizes); in operator ()()
Dtopk_op_gpu.h524 const Eigen::DSizes<Eigen::DenseIndex, 2> slice_sizes{num_rows, k};
526 To32Bit(temp_indices.matrix<int32>()).slice(slice_indices, slice_sizes);
528 To32Bit(temp_values.matrix<T>()).slice(slice_indices, slice_sizes);
Dbatch_kernels.cc162 Eigen::DSizes<Eigen::DenseIndex, 2> slice_sizes{size, suffix_dim_size}; in SplitCPU() local
165 slice_indices, slice_sizes); in SplitCPU()
360 const std::vector<int64> slice_sizes = {1}; in ConcatInputTensors() local
368 SplitCPU<type>(context, padding_source, slice_sizes, &slices); \ in ConcatInputTensors()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dreverse_sequence_op.cc117 auto slice_sizes = input_shape.dim_sizes(); in Compile() local
118 slice_sizes[batch_dim_] = 1; in Compile()
119 slice_sizes[seq_dim_] = 1; in Compile()
122 xla::Gather(input, start_indices, dnums, slice_sizes)); in Compile()
Dfft_ops.cc61 absl::InlinedVector<int64, 4> slice_sizes = input_shape.dim_sizes(); in Compile() local
62 std::vector<std::pair<int64, int64>> padding_sizes(slice_sizes.size()); in Compile()
78 slice_sizes[index] = expected_sizes[i]; in Compile()
87 input = xla::Pad(xla::Slice(input, start_indices, slice_sizes, strides), in Compile()
Dgather_op.cc117 std::vector<int64> slice_sizes; in XlaGather() local
118 slice_sizes.reserve(input_shape.dims()); in XlaGather()
128 slice_sizes.push_back(window_bound); in XlaGather()
145 *gather_output = xla::Gather(input, indices, dim_numbers, slice_sizes); in XlaGather()
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dslicing.cc153 std::vector<int64> slice_sizes(input_shape.rank(), 1); in TorchGather() local
160 return Gather(input, gather_indices, gather_dnums, slice_sizes); in TorchGather()
169 std::vector<int64> slice_sizes = input_shape.dimensions(); in TorchIndexSelect() local
170 slice_sizes[dim] = 1; in TorchIndexSelect()
180 return Gather(input, index, gather_dnums, slice_sizes); in TorchIndexSelect()
/external/tensorflow/tensorflow/compiler/xla/service/
Dgather_expander.cc234 absl::Span<const int64> slice_sizes, int64 gather_loop_trip_count, in CreateGatherLoopAccumulatorInitValue() argument
237 accumulator_state_shape_dims.reserve(1 + slice_sizes.size()); in CreateGatherLoopAccumulatorInitValue()
239 for (int64 i = 0; i < slice_sizes.size(); i++) { in CreateGatherLoopAccumulatorInitValue()
241 accumulator_state_shape_dims.push_back(slice_sizes[i]); in CreateGatherLoopAccumulatorInitValue()
Dtriangular_solve_expander.cc73 std::vector<int64> slice_sizes(ndims); in DiagonalBlocks() local
78 slice_sizes[i] = ShapeUtil::GetDimension(shape, i); in DiagonalBlocks()
80 slice_sizes[ndims - 2] = slice_sizes[ndims - 1] = block_size; in DiagonalBlocks()
86 diag_blocks = Gather(a, start_indices, dim_numbers, slice_sizes); in DiagonalBlocks()
Dshape_inference.cc2267 absl::Span<const int64> slice_sizes, bool allow_scalar_indices) { in InferDynamicSliceShape() argument
2284 StrJoin(slice_sizes, ", ")); in InferDynamicSliceShape()
2311 StrJoin(slice_sizes, ", ")); in InferDynamicSliceShape()
2343 if (slice_sizes.size() != operand_shape.rank()) { in InferDynamicSliceShape()
2346 slice_sizes.size(), operand_shape.rank()); in InferDynamicSliceShape()
2349 for (int64 dim = 0; dim < slice_sizes.size(); ++dim) { in InferDynamicSliceShape()
2351 const int64 slice_dim_size = slice_sizes[dim]; in InferDynamicSliceShape()
2364 return ShapeUtil::MakeShape(operand_shape.element_type(), slice_sizes); in InferDynamicSliceShape()
2960 absl::Span<const int64> slice_sizes) { in InferGatherShape() argument
2999 if (slice_sizes.size() != input_shape.dimensions_size()) { in InferGatherShape()
[all …]
Dshape_inference.h187 absl::Span<const int64> slice_sizes, bool allow_scalar_indices = true);
285 absl::Span<const int64> slice_sizes);
Dhlo_creation_utils.cc123 absl::Span<const int64> slice_sizes) { in MakeDynamicSliceHlo() argument
143 operand->shape(), scalar_start_indices_shapes, slice_sizes)); in MakeDynamicSliceHlo()
145 dynamic_slice_shape, operand, scalar_start_indices, slice_sizes)); in MakeDynamicSliceHlo()
Dhlo_creation_utils.h80 absl::Span<const int64> slice_sizes);
Dhlo_instructions.cc2235 absl::Span<const int64> slice_sizes) in HloDynamicSliceInstruction() argument
2237 dynamic_slice_sizes_(slice_sizes.begin(), slice_sizes.end()) { in HloDynamicSliceInstruction()
2245 absl::Span<const int64> slice_sizes) in HloDynamicSliceInstruction() argument
2247 dynamic_slice_sizes_(slice_sizes.begin(), slice_sizes.end()) { in HloDynamicSliceInstruction()
2312 absl::Span<const int64> slice_sizes) in HloGatherInstruction() argument
2318 absl::c_copy(slice_sizes, std::back_inserter(gather_slice_sizes_)); in HloGatherInstruction()
Dindexed_array_analysis.cc255 absl::Span<const int64> slice_sizes, Array* source, Array* indices) { in ComputeArrayForGather() argument
280 source->shape().dimensions(i) != slice_sizes[i]) { in ComputeArrayForGather()
283 << source->shape().dimensions(i) << " vs. " << slice_sizes[i] in ComputeArrayForGather()
/external/tensorflow/tensorflow/compiler/xla/tests/
Ddynamic_ops_test.cc119 const std::vector<int64>& slice_sizes, in RunR1() argument
142 DynamicSlice(input, absl::Span<const XlaOp>({starts}), slice_sizes); in RunR1()
150 const std::vector<int64>& slice_sizes, in RunR2() argument
172 DynamicSlice(input, starts, slice_sizes); in RunR2()
185 const std::vector<int64>& slice_sizes, in RunR3() argument
206 DynamicSlice(input, starts, slice_sizes); in RunR3()
/external/tensorflow/tensorflow/compiler/xla/client/
Dxla_builder.h355 absl::Span<const int64> slice_sizes);
358 absl::Span<const int64> slice_sizes);
545 absl::Span<const int64> slice_sizes);
742 absl::Span<const int64> slice_sizes);
745 absl::Span<const int64> slice_sizes);
970 absl::Span<const int64> slice_sizes);
1215 absl::Span<const int64> slice_sizes);
1219 absl::Span<const int64> slice_sizes);
1817 absl::Span<const int64> slice_sizes);
Dxla_builder.cc759 absl::Span<const int64> slice_sizes) { in DynamicSlice() argument
768 operand_shape, {start_indices_shape}, slice_sizes)); in DynamicSlice()
771 for (int64 size : slice_sizes) { in DynamicSlice()
782 absl::Span<const int64> slice_sizes) { in DynamicSlice() argument
795 operand_shape, start_indices_shapes, slice_sizes)); in DynamicSlice()
798 for (int64 size : slice_sizes) { in DynamicSlice()
1842 absl::Span<const int64> slice_sizes) { in Gather() argument
1851 dimension_numbers, slice_sizes)); in Gather()
1855 for (int64 bound : slice_sizes) { in Gather()
2882 absl::Span<const int64> slice_sizes) { in DynamicSlice() argument
[all …]
/external/tensorflow/tensorflow/compiler/xla/python/
Dlocal_computation_builder.cc530 absl::Span<const int64> slice_sizes) { in DynamicSlice() argument
531 return xla::DynamicSlice(operand.op(), start_indices.op(), slice_sizes); in DynamicSlice()
757 absl::Span<const int64> slice_sizes) { in Gather() argument
759 slice_sizes); in Gather()
Dlocal_computation_builder.h270 absl::Span<const int64> slice_sizes);
375 absl::Span<const int64> slice_sizes);
Dxla_client.py1353 def DynamicSlice(self, operand, start_indices, slice_sizes): argument
1366 return self._client.DynamicSlice(operand, start_indices, slice_sizes)
1775 def Gather(self, a, start_indices, dimension_numbers, slice_sizes): argument
1777 return self._client.Gather(a, start_indices, dimension_numbers, slice_sizes)

12