Home
last modified time | relevance | path

Searched refs:Slice (Results 1 – 25 of 249) sorted by relevance

12345678910

/third_party/grpc/include/grpcpp/impl/codegen/
Dslice.h35 class Slice final {
38 Slice() : slice_(g_core_codegen_interface->grpc_empty_slice()) {} in Slice() function
40 ~Slice() { g_core_codegen_interface->grpc_slice_unref(slice_); } in ~Slice()
44 Slice(grpc_slice slice, AddRef) in Slice() function
49 Slice(grpc_slice slice, StealRef) : slice_(slice) {} in Slice() function
52 explicit Slice(size_t len) in Slice() function
56 Slice(const void* buf, size_t len) in Slice() function
62 Slice(const std::string& str) in Slice() function
69 Slice(const void* buf, size_t len, StaticSlice) in Slice() function
74 Slice(const Slice& other) in Slice() function
[all …]
/third_party/grpc/test/cpp/util/
Dslice_test.cc42 void CheckSliceSize(const Slice& s, const std::string& content) { in CheckSliceSize()
45 void CheckSlice(const Slice& s, const std::string& content) { in CheckSlice()
53 Slice empty_slice; in TEST_F()
58 Slice sized_slice(strlen(kContent)); in TEST_F()
63 Slice spp(kContent); in TEST_F()
68 Slice spp(kContent, strlen(kContent)); in TEST_F()
73 Slice spp(kContent, strlen(kContent), Slice::STATIC_SLICE); in TEST_F()
80 Slice spp(x, strlen(x), [](void* p) { delete[] static_cast<char*>(p); }); in TEST_F()
85 Slice spp(const_cast<char*>(kContent), strlen(kContent), [](void* /*p*/) {}); in TEST_F()
97 Slice spp(t->x, strlen(t->x), in TEST_F()
[all …]
Dbyte_buffer_test.cc54 Slice s(kContent1); in TEST_F()
60 std::vector<Slice> slices; in TEST_F()
68 Slice s(kContent1); in TEST_F()
75 std::vector<Slice> slices; in TEST_F()
82 bool SliceEqual(const Slice& a, grpc_slice b) { in SliceEqual()
97 std::vector<Slice> slices; in TEST_F()
98 slices.push_back(Slice(hello, Slice::STEAL_REF)); in TEST_F()
99 slices.push_back(Slice(world, Slice::STEAL_REF)); in TEST_F()
110 std::vector<Slice> slices; in TEST_F()
111 slices.push_back(Slice(hello, Slice::STEAL_REF)); in TEST_F()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Dlayout_test.cc722 EXPECT_EQ(0, L::Partial(0).Slice<0>(p).size()); in TEST()
723 EXPECT_EQ(3, L::Partial(3).Slice<0>(p).size()); in TEST()
724 EXPECT_EQ(3, L(3).Slice<0>(p).size()); in TEST()
728 EXPECT_EQ(3, L::Partial(3).Slice<0>(p).size()); in TEST()
729 EXPECT_EQ(5, L::Partial(3, 5).Slice<1>(p).size()); in TEST()
730 EXPECT_EQ(5, L(3, 5).Slice<1>(p).size()); in TEST()
734 EXPECT_EQ(3, L::Partial(3).Slice<0>(p).size()); in TEST()
735 EXPECT_EQ(3, L::Partial(3, 5).Slice<0>(p).size()); in TEST()
736 EXPECT_EQ(5, L::Partial(3, 5).Slice<1>(p).size()); in TEST()
737 EXPECT_EQ(3, L::Partial(3, 5, 7).Slice<0>(p).size()); in TEST()
[all …]
/third_party/abseil-cpp/absl/container/internal/
Dlayout_test.cc692 EXPECT_EQ(0, L::Partial(0).Slice<0>(p).size()); in TEST()
693 EXPECT_EQ(3, L::Partial(3).Slice<0>(p).size()); in TEST()
694 EXPECT_EQ(3, L(3).Slice<0>(p).size()); in TEST()
698 EXPECT_EQ(3, L::Partial(3).Slice<0>(p).size()); in TEST()
699 EXPECT_EQ(5, L::Partial(3, 5).Slice<1>(p).size()); in TEST()
700 EXPECT_EQ(5, L(3, 5).Slice<1>(p).size()); in TEST()
704 EXPECT_EQ(3, L::Partial(3).Slice<0>(p).size()); in TEST()
705 EXPECT_EQ(3, L::Partial(3, 5).Slice<0>(p).size()); in TEST()
706 EXPECT_EQ(5, L::Partial(3, 5).Slice<1>(p).size()); in TEST()
707 EXPECT_EQ(3, L::Partial(3, 5, 7).Slice<0>(p).size()); in TEST()
[all …]
/third_party/skia/src/gpu/dawn/
DGrDawnRingBuffer.h20 struct Slice { struct
21 Slice(wgpu::Buffer buffer, int offset) in Slice() function
23 Slice() in Slice() argument
25 Slice(const Slice& other) in Slice() function
27 Slice& operator=(const Slice& other) {
35 Slice allocate(int size); argument
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/arrays/
Dslice_gpu_kernel.cc21 MS_REG_GPU_KERNEL_ONE(Slice, KernelAttr().AddInputAttr(kNumberTypeFloat64).AddOutputAttr(kNumberTyp…
23 MS_REG_GPU_KERNEL_ONE(Slice, KernelAttr().AddInputAttr(kNumberTypeFloat32).AddOutputAttr(kNumberTyp…
25 MS_REG_GPU_KERNEL_ONE(Slice, KernelAttr().AddInputAttr(kNumberTypeFloat16).AddOutputAttr(kNumberTyp…
27 MS_REG_GPU_KERNEL_ONE(Slice, KernelAttr().AddInputAttr(kNumberTypeInt64).AddOutputAttr(kNumberTypeI…
29 MS_REG_GPU_KERNEL_ONE(Slice, KernelAttr().AddInputAttr(kNumberTypeInt32).AddOutputAttr(kNumberTypeI…
31 MS_REG_GPU_KERNEL_ONE(Slice, KernelAttr().AddInputAttr(kNumberTypeInt16).AddOutputAttr(kNumberTypeI…
33 MS_REG_GPU_KERNEL_ONE(Slice, KernelAttr().AddInputAttr(kNumberTypeUInt8).AddOutputAttr(kNumberTypeU…
35 MS_REG_GPU_KERNEL_ONE(Slice, KernelAttr().AddInputAttr(kNumberTypeBool).AddOutputAttr(kNumberTypeBo…
/third_party/mindspore/tests/ut/cpp/dataset/
Dslice_op_test.cc37 Slice slice = Slice(1, 3); in TEST_F()
64 Slice slice = Slice(-1, -5, -1); in TEST_F()
90 Slice slice1_ = Slice(0, 2); in TEST_F()
91 Slice slice2_ = Slice(0, 1); in TEST_F()
119 Slice slice1_ = Slice(0, 1); in TEST_F()
120 Slice slice2_ = Slice(0, 2); in TEST_F()
121 Slice slice3_ = Slice(0, 2); in TEST_F()
148 Slice slice1_ = Slice(0, 1); in TEST_F()
149 Slice slice2_ = Slice(2, 1); in TEST_F()
150 Slice slice3_ = Slice(0, 2); in TEST_F()
[all …]
/third_party/grpc/src/csharp/Grpc.Core.Tests/Internal/
DFakeBufferReaderManagerTest.cs49 …ert.Throws(typeof(ArgumentNullException), () => fakeBufferReader.TryGetNextSlice(out Slice slice)); in NullPayload()
56 Assert.IsFalse(fakeBufferReader.TryGetNextSlice(out Slice slice)); in ZeroSegmentPayload()
71 Assert.IsTrue(fakeBufferReader.TryGetNextSlice(out Slice slice)); in SingleSegmentPayload()
74 Assert.IsFalse(fakeBufferReader.TryGetNextSlice(out Slice slice2)); in SingleSegmentPayload()
91 Assert.IsTrue(fakeBufferReader.TryGetNextSlice(out Slice slice1)); in MultiSegmentPayload()
94 Assert.IsTrue(fakeBufferReader.TryGetNextSlice(out Slice slice2)); in MultiSegmentPayload()
97 Assert.IsTrue(fakeBufferReader.TryGetNextSlice(out Slice slice3)); in MultiSegmentPayload()
100 Assert.IsFalse(fakeBufferReader.TryGetNextSlice(out Slice slice4)); in MultiSegmentPayload()
103 private void AssertSliceDataEqual(byte[] expected, Slice actual) in AssertSliceDataEqual()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/include/dataset/
Dtransforms.h80 class Slice {
83 Slice() : start_(0), stop_(0), step_(0) {} in Slice() function
88 Slice(dsize_t start, dsize_t stop, dsize_t step) : start_(start), stop_(stop), step_(step) {} in Slice() function
92 Slice(dsize_t start, dsize_t stop) : start_(start), stop_(stop), step_(1) {} in Slice() function
95 explicit Slice(dsize_t stop) : start_(0), stop_(stop), step_(1) {} in Slice() function
96 Slice(Slice const &slice) = default;
98 ~Slice() = default;
114 explicit SliceOption(Slice slice) : slice_(slice) {} in SliceOption()
123 Slice slice_;
344 class Slice final : public TensorTransform {
[all …]
/third_party/mindspore/tests/st/ops/gpu/
Dtest_slice.py25 class Slice(nn.Cell): class
27 super(Slice, self).__init__()
28 self.slice = P.Slice()
44 slice_op = Slice()
52 self.slice = P.Slice()
76 self.slice = P.Slice()
107 slice_op = Slice()
/third_party/mindspore/mindspore/core/ops/
Dslice.h31 class MS_CORE_API Slice : public PrimitiveC {
34 Slice() : PrimitiveC(kNameSlice) { InitIOName({"x", "begin", "size"}, {"output"}); } in Slice() function
36 ~Slice() = default;
37 MS_DECLARE_PARENT(Slice, PrimitiveC);
/third_party/flatbuffers/net/FlatBuffers/
DByteBuffer.cs242 … return MemoryMarshal.Cast<byte, T>(_buffer.ReadOnlySpan.Slice(pos)).Slice(0, len).ToArray();
268 return _buffer.ReadOnlyMemory.Slice(pos, len); in ToReadOnlyMemory()
273 return _buffer.Memory.Slice(pos, len); in ToMemory()
278 return _buffer.Span.Slice(pos, len); in ToSpan()
435 Span<byte> span = _buffer.Span.Slice(offset, count); in PutByte()
482 Encoding.UTF8.GetBytes(value.AsSpan().Slice(0, value.Length), in PutStringUTF8()
483 _buffer.Span.Slice(offset)); in PutStringUTF8()
505 Span<byte> span = _buffer.Span.Slice(offset); in PutUshort()
526 Span<byte> span = _buffer.Span.Slice(offset); in PutUint()
547 Span<byte> span = _buffer.Span.Slice(offset); in PutUlong()
[all …]
/third_party/mindspore/tests/st/ops/ascend/test_tbe_ops/
Dtest_slice.py28 class Slice(nn.Cell): class
30 super(Slice, self).__init__()
32 self.cat = P.Slice()
43 cat = Slice()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DCRC.cpp92 ArrayRef<uint8_t> Slice = Data.take_front(UINT32_MAX); in crc32() local
93 CRC = ::crc32(CRC, (const Bytef *)Slice.data(), (uInt)Slice.size()); in crc32()
94 Data = Data.drop_front(Slice.size()); in crc32()
/third_party/mindspore/mindspore/core/ir/
Ddtype.cc58 TypePtr Slice::DeepCopy() const { in DeepCopy()
60 return std::make_shared<Slice>(); in DeepCopy()
65 auto copy = std::make_shared<Slice>(start_->DeepCopy(), stop_->DeepCopy(), step_->DeepCopy()); in DeepCopy()
70 std::string Slice::ToString() const { in ToString()
87 bool Slice::operator==(const Type &other) const { in operator ==()
91 auto other_slice = static_cast<const Slice &>(other); in operator ==()
95 std::string Slice::DumpText() const { return ToString(); } in DumpText()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/
Dslice_cpu_kernel.h46 MS_REG_CPU_KERNEL(Slice, KernelAttr().AddInputAttr(kNumberTypeBool).AddOutputAttr(kNumberTypeBool),…
47 MS_REG_CPU_KERNEL(Slice, KernelAttr().AddInputAttr(kNumberTypeInt32).AddOutputAttr(kNumberTypeInt32…
48 MS_REG_CPU_KERNEL(Slice, KernelAttr().AddInputAttr(kNumberTypeFloat32).AddOutputAttr(kNumberTypeFlo…
50 MS_REG_CPU_KERNEL(Slice, KernelAttr().AddInputAttr(kNumberTypeFloat64).AddOutputAttr(kNumberTypeFlo…
/third_party/skia/src/gpu/
DGrStagingBufferManager.h21 struct Slice { struct
22 Slice() {} in Slice() function
23 Slice(GrGpuBuffer* buffer, size_t offset, void* offsetMapPtr) in Slice() argument
30 Slice allocateStagingBufferSlice(size_t size, size_t requiredAlignment = 1); argument
/third_party/mindspore/mindspore/lite/examples/runtime_gpu_extend/src/
Dcustom_common.h87 Slice = UP_DIV(C, C4NUM); in GpuTensorInfo()
94 if (W * Slice <= opencl_run->GetMaxImage2DWidth()) { in GpuTensorInfo()
96 width = W * Slice; in GpuTensorInfo()
99 width = Slice; in GpuTensorInfo()
113 size_t Slice{};
/third_party/grpc/src/cpp/util/
Dbyte_buffer_cc.cc28 Status ByteBuffer::Dump(std::vector<Slice>* slices) const { in Dump()
40 slices->push_back(Slice(s, Slice::STEAL_REF)); in Dump()
/third_party/grpc/src/csharp/Grpc.Core/Internal/
DSliceMemoryManager.cs34 private Slice slice;
36 public void Reset(Slice slice) in Reset()
43 Reset(new Slice(IntPtr.Zero, 0)); in Reset()
/third_party/mindspore/tests/st/ops/cpu/
Dtest_slice_op.py28 class Slice(nn.Cell): class
30 super(Slice, self).__init__()
31 self.slice = P.Slice()
46 slice_op = Slice()
54 self.slice = P.Slice()
76 slice_op = P.Slice()
128 self.slice = P.Slice()
/third_party/skia/third_party/externals/tint/tools/src/list/
Dlist.go54 if ptr.Kind() != reflect.Ptr || ptr.Elem().Kind() != reflect.Slice {
110 l.v.Slice(dst, dst+count),
111 l.v.Slice(src, src+count),
118 l.v.Slice(dst, dst+count),
119 o.v.Slice(src, src+count),
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/
Dindex_sub_table_format2.cc35 data_->Slice(EblcTable::Offset::kIndexSubTable2_bigGlyphMetrics, in BigMetrics()
114 data.Attach(down_cast<WritableFontData*>(InternalWriteData()->Slice( in BigMetrics()
141 data->Slice(index_sub_table_offset, length))); in CreateBuilder()
164 data->Slice(index_sub_table_offset, length))); in CreateBuilder()
198 InternalReadData()->Slice(size))); in SubSerialize()
199 target.Attach(down_cast<WritableFontData*>(new_data->Slice(size))); in SubSerialize()
205 slice.Attach(down_cast<WritableFontData*>(new_data->Slice(size))); in SubSerialize()
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/table/bitmap/
Dindex_sub_table_format2.cc35 data_->Slice(EblcTable::Offset::kIndexSubTable2_bigGlyphMetrics, in BigMetrics()
114 data.Attach(down_cast<WritableFontData*>(InternalWriteData()->Slice( in BigMetrics()
141 data->Slice(index_sub_table_offset, length))); in CreateBuilder()
164 data->Slice(index_sub_table_offset, length))); in CreateBuilder()
198 InternalReadData()->Slice(size))); in SubSerialize()
199 target.Attach(down_cast<WritableFontData*>(new_data->Slice(size))); in SubSerialize()
205 slice.Attach(down_cast<WritableFontData*>(new_data->Slice(size))); in SubSerialize()

12345678910