Home
last modified time | relevance | path

Searched refs:slice1 (Results 1 – 25 of 41) sorted by relevance

12

/external/tensorflow/tensorflow/compiler/xla/service/
Dslice_sinker_test.cc69 const HloInstruction* slice1; in TEST_F() local
74 m::Slice(&slice1, m::Select(m::Parameter(0), m::Parameter(1), in TEST_F()
79 EXPECT_THAT(slice1->slice_starts(), ElementsAre(2, 0)); in TEST_F()
80 EXPECT_THAT(slice1->slice_limits(), ElementsAre(8, 9)); in TEST_F()
81 EXPECT_THAT(slice1->slice_strides(), ElementsAre(1, 1)); in TEST_F()
109 const HloInstruction* slice1; in TEST_F() local
114 m::Slice(&slice1, m::Add(m::Parameter(0), m::Parameter(1))), in TEST_F()
119 EXPECT_THAT(slice1->slice_starts(), ElementsAre(3, 0)); in TEST_F()
120 EXPECT_THAT(slice1->slice_limits(), ElementsAre(8, 9)); in TEST_F()
121 EXPECT_THAT(slice1->slice_strides(), ElementsAre(1, 1)); in TEST_F()
[all …]
Dfusion_node_indexing_evaluation_test.cc106 HloInstruction* slice1 = sub->mutable_operand(0); in TEST_F() local
109 instruction_fusion.Fuse(slice1, sub, module->entry_computation()); in TEST_F()
/external/tensorflow/tensorflow/core/framework/
Dtensor_slice_test.cc356 TensorSlice slice1(3); in TEST() local
358 EXPECT_TRUE(slice1 != slice2); in TEST()
359 EXPECT_TRUE(slice2 != slice1); in TEST()
362 TensorSlice slice1(3); in TEST() local
364 EXPECT_TRUE(slice1 == slice2); in TEST()
365 EXPECT_TRUE(slice2 == slice1); in TEST()
368 TensorSlice slice1(3); in TEST() local
370 EXPECT_TRUE(slice1 != slice2); in TEST()
371 EXPECT_TRUE(slice2 != slice1); in TEST()
/external/eigen/unsupported/test/
Dcxx11_tensor_morphing.cpp121 Tensor<T, 5, DataLayout> slice1(1,1,1,1,1); in test_simple_slice() local
124 slice1 = tensor.slice(indices, sizes); in test_simple_slice()
125 VERIFY_IS_EQUAL(slice1(0,0,0,0,0), tensor(1,2,3,4,5)); in test_simple_slice()
257 auto slice1 = SliceEvaluator(tensor.slice(offsets, extents), DefaultDevice()); in test_slice_raw_data() local
258 VERIFY_IS_EQUAL(slice1.dimensions().TotalSize(), 1); in test_slice_raw_data()
259 VERIFY_IS_EQUAL(slice1.data()[0], tensor(1,2,3,4)); in test_slice_raw_data()
390 Tensor5f slice1(1,1,1,1,1); in test_strided_slice() local
394 slice1 = tensor.stridedSlice(indicesStart, indicesStop, strides); in test_strided_slice()
395 VERIFY_IS_EQUAL(slice1(0,0,0,0,0), tensor(1,2,3,4,5)); in test_strided_slice()
492 Tensor<T, 3, DataLayout> slice1(0,1,2); in test_empty_slice() local
[all …]
Dcxx11_tensor_morphing_sycl.cpp149 Tensor<DataType, 5,DataLayout, IndexType> slice1(slice1_range); in test_simple_slice() local
152 …DataType* gpu_data2 = static_cast<DataType*>(sycl_device.allocate(slice1.size()*sizeof(DataType))… in test_simple_slice()
159 sycl_device.memcpyDeviceToHost(slice1.data(), gpu_data2,(slice1.size())*sizeof(DataType)); in test_simple_slice()
160 VERIFY_IS_EQUAL(slice1(0,0,0,0,0), tensor(1,2,3,4,5)); in test_simple_slice()
203 Tensor<DataType, 5,DataLayout, IndexType> slice1(slice1_range); in test_strided_slice_as_rhs_sycl() local
207 …DataType* gpu_data2 = static_cast<DataType*>(sycl_device.allocate(slice1.size()*sizeof(DataType))… in test_strided_slice_as_rhs_sycl()
218 sycl_device.memcpyDeviceToHost(slice1.data(), gpu_data2,(slice1.size())*sizeof(DataType)); in test_strided_slice_as_rhs_sycl()
223 VERIFY_IS_EQUAL(slice1(0,0,0,0,0), tensor(1,2,3,4,5)); in test_strided_slice_as_rhs_sycl()
/external/grpc-grpc/test/core/compression/
Dstream_compression_test.cc201 grpc_slice slice1 = grpc_slice_buffer_take_first(&relay); in test_stream_compression_drop_context() local
204 grpc_slice_malloc(GRPC_SLICE_LENGTH(slice1) + GRPC_SLICE_LENGTH(slice2)); in test_stream_compression_drop_context()
205 memcpy(GRPC_SLICE_START_PTR(slice3), GRPC_SLICE_START_PTR(slice1), in test_stream_compression_drop_context()
206 GRPC_SLICE_LENGTH(slice1)); in test_stream_compression_drop_context()
207 memcpy(GRPC_SLICE_START_PTR(slice3) + GRPC_SLICE_LENGTH(slice1), in test_stream_compression_drop_context()
209 grpc_slice_unref(slice1); in test_stream_compression_drop_context()
/external/rust/crates/half/src/
Dslice.rs826 let mut slice1 = [f16::ZERO; 3]; in convert_from_f32_slice_len_mismatch_panics() localVariable
828 slice1.convert_from_f32_slice(&slice2); in convert_from_f32_slice_len_mismatch_panics()
834 let mut slice1 = [f16::ZERO; 3]; in convert_from_f64_slice_len_mismatch_panics() localVariable
836 slice1.convert_from_f64_slice(&slice2); in convert_from_f64_slice_len_mismatch_panics()
842 let slice1 = [f16::ZERO; 3]; in convert_to_f32_slice_len_mismatch_panics() localVariable
844 slice1.convert_to_f32_slice(&mut slice2); in convert_to_f32_slice_len_mismatch_panics()
850 let slice1 = [f16::ZERO; 3]; in convert_to_f64_slice_len_mismatch_panics() localVariable
852 slice1.convert_to_f64_slice(&mut slice2); in convert_to_f64_slice_len_mismatch_panics()
/external/perfetto/test/trace_processor/diff_tests/track_event/
Drange_of_interest.textproto37 name: "slice1"
114 name: "slice1"
/external/perfetto/test/trace_processor/diff_tests/chrome/
Dchrome_reliable_range_cropping.textproto62 name: "slice1"
72 name: "slice1"
Dchrome_reliable_range.textproto55 name: "slice1"
65 name: "slice1"
Dunsymbolized_args.textproto72 name: "slice1"
115 name: "slice1"
Dchrome_reliable_range_missing_gpu_main.textproto38 name: "slice1"
Dchrome_reliable_range_missing_browser_main.textproto38 name: "slice1"
Dchrome_reliable_range_missing_renderer_main.textproto38 name: "slice1"
Dchrome_reliable_range_missing_processes.textproto41 name: "slice1"
/external/perfetto/test/trace_processor/diff_tests/translation/
Dchrome_histogram.textproto35 name: "slice1"
100 name: "slice1"
Dchrome_user_event.textproto36 name: "slice1"
100 name: "slice1"
Dnative_symbol_arg.textproto66 name: "slice1"
155 name: "slice1"
Dchrome_performance_mark.out7 "event.name","event.name","[NULL]","slice1"
Dchrome_user_event.out10 "event.name","event.name","[NULL]","slice1"
Dchrome_histogram.out11 "event.name","event.name","[NULL]","slice1"
Dnative_symbol_arg.out14 "event.name","event.name","[NULL]","slice1"
/external/perfetto/src/trace_processor/importers/common/
Dslice_tracker_unittest.cc466 SliceId slice1 = context.storage->slice_table().id()[0]; in TEST() local
468 EXPECT_EQ(tracker.GetTopmostSliceOnTrack(track).value(), slice1); in TEST()
479 EXPECT_EQ(tracker.GetTopmostSliceOnTrack(track).value(), slice1); in TEST()
507 SliceId slice1 = context.storage->slice_table().id()[0]; in TEST() local
509 EXPECT_THAT(slice_records, ElementsAre(slice1)); in TEST()
514 EXPECT_THAT(slice_records, ElementsAre(slice1, slice2)); in TEST()
520 EXPECT_THAT(slice_records, ElementsAre(slice1, slice2, slice3)); in TEST()
/external/cronet/net/third_party/quiche/src/quiche/quic/core/
Dquic_stream_send_buffer_test.cc37 quiche::QuicheMemSlice slice1(std::move(buffer1)); in QuicStreamSendBufferTest() local
47 send_buffer_.SaveMemSlice(std::move(slice1)); in QuicStreamSendBufferTest()
48 EXPECT_TRUE(slice1.empty()); in QuicStreamSendBufferTest()
/external/rust/crates/slab/src/
Dlib.rs757 let (slice1, slice2) = self.entries.split_at_mut(key1); in get2_mut()
759 entry2 = slice1.get_mut(key2); in get2_mut()
761 let (slice1, slice2) = self.entries.split_at_mut(key2); in get2_mut()
762 entry1 = slice1.get_mut(key1); in get2_mut()

12