Home
last modified time | relevance | path

Searched refs:slice_start (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Deigen_mkldnn_contraction_kernel_test.cc63 Eigen::array<Index, 2> slice_start = RandomDims<Index, 2>(0, 250); in TEST() local
68 slice_start[i] = numext::mini(dims[i] - 1, slice_start[i]); in TEST()
69 slice_size[i] = numext::mini(slice_size[i], dims[i] - slice_start[i]); in TEST()
80 data_mapper.getSubMapper(slice_start[0], slice_start[1]), in TEST()
84 slice_dst = src.slice(slice_start, slice_size); in TEST()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/slice/
Dpercent_encoding.cc47 const uint8_t* slice_start = GRPC_SLICE_START_PTR(slice); in grpc_percent_encode_slice() local
51 for (p = slice_start; p < slice_end; p++) { in grpc_percent_encode_slice()
63 for (p = slice_start; p < slice_end; p++) { in grpc_percent_encode_slice()
/external/grpc-grpc/src/core/lib/slice/
Dpercent_encoding.cc47 const uint8_t* slice_start = GRPC_SLICE_START_PTR(slice); in grpc_percent_encode_slice() local
51 for (p = slice_start; p < slice_end; p++) { in grpc_percent_encode_slice()
63 for (p = slice_start; p < slice_end; p++) { in grpc_percent_encode_slice()
/external/tensorflow/tensorflow/python/distribute/
Dsharded_variable.py436 slice_start = slice_spec.start
437 if slice_start is None:
438 slice_start = 0 if slice_step > 0 else self._shape[0] - 1
439 elif slice_start < 0:
440 slice_start += self._shape[0]
457 cur = slice_start
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Ddynamic_stitch_op.cc172 std::vector<int64> slice_start(result_rank); in Compile() local
182 slice_start[0] = src_slice_vector[index_num]; in Compile()
187 xla::Slice(expression, slice_start, slice_limit, stride); in Compile()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dhorizontal_loop_fusion.cc404 int64 slice_start = 0; in CreateFusedComputation() local
409 int64 slice_limit = slice_start + ShapeUtil::ElementsIn(shape); in CreateFusedComputation()
412 MakeSliceHlo(concated_output, {slice_start}, {slice_limit}, in CreateFusedComputation()
414 slice_start = slice_limit; in CreateFusedComputation()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dslice_test.cc205 int64 slice_start; member
225 Slice(original, {spec.slice_start}, {spec.slice_limit}, in Run()
230 for (int i = spec.slice_start; i < spec.slice_limit; in Run()
246 return absl::StrFormat("%d_%d_%d_%d", spec.input_dim0, spec.slice_start, in SliceR1TestDataToString()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_constant_folding_test.cc155 const int64 slice_start[] = {4, 2, 3, 1, 5}; in TEST_F() local
165 shape, literal_instruction, slice_start, slice_limits, slice_strides)); in TEST_F()
/external/tensorflow/tensorflow/python/keras/layers/
Dtensorflow_op_layer_test.py586 slice_start = keras.Input(shape=(), dtype='int32')
590 out = inp[..., first_dim[0], slice_start[0]:slice_stop[0]:slice_stride[0]]
592 inputs=[inp, first_dim, slice_start, slice_stop, slice_stride],
/external/tensorflow/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/IR/
Dhlo_ops.cc218 llvm::SmallVector<int64_t, 8> slice_start(slice_end.size(), 0); in matchAndRewrite() local
223 slice_start[map_index] += offset; in matchAndRewrite()
230 slice_shape[i] = slice_end[i] - slice_start[i]; in matchAndRewrite()
236 GetI64ElementsAttr(slice_start, &rewriter), in matchAndRewrite()
2537 auto slice_start = (*(start.begin() + dimension)).getSExtValue(); in matchAndRewrite() local
2558 if (running_size + dim_size > slice_start && in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Dlower_static_tensor_list.cc658 Value slice_start = CreateI32SplatConst(loc, rewriter, {1}, 1); in CreateCondTrueBranch() local
660 loc, RankedTensorType::get({-1}, shape_dtype), input_shape, slice_start, in CreateCondTrueBranch()