/third_party/grpc/include/grpcpp/impl/codegen/ |
D | slice.h | 35 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/ |
D | slice_test.cc | 42 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 …]
|
D | byte_buffer_test.cc | 54 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/ |
D | layout_test.cc | 722 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/ |
D | layout_test.cc | 692 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/ |
D | GrDawnRingBuffer.h | 20 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/ |
D | slice_gpu_kernel.cc | 21 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/ |
D | slice_op_test.cc | 37 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/ |
D | FakeBufferReaderManagerTest.cs | 49 …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/ |
D | transforms.h | 80 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/ |
D | test_slice.py | 25 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/ |
D | slice.h | 31 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/ |
D | ByteBuffer.cs | 242 … 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/ |
D | test_slice.py | 28 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/ |
D | CRC.cpp | 92 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/ |
D | dtype.cc | 58 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/ |
D | slice_cpu_kernel.h | 46 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/ |
D | GrStagingBufferManager.h | 21 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/ |
D | custom_common.h | 87 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/ |
D | byte_buffer_cc.cc | 28 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/ |
D | SliceMemoryManager.cs | 34 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/ |
D | test_slice_op.py | 28 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/ |
D | list.go | 54 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/ |
D | index_sub_table_format2.cc | 35 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/ |
D | index_sub_table_format2.cc | 35 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()
|