Home
last modified time | relevance | path

Searched refs:ElementCount (Results 1 – 25 of 32) sorted by relevance

12

/external/pdfium/third_party/lcms/
D0025-upstream-direct-leak-Type_MPE_Read.patch9 - if (!_cmsReadUInt32Number(io, &ElementCount)) return NULL;
11 - if (!ReadPositionTable(self, io, ElementCount, BaseOffset, NewLUT, ReadMPEElem)) {
16 + if (!_cmsReadUInt32Number(io, &ElementCount)) goto Error;
17 + if (!ReadPositionTable(self, io, ElementCount, BaseOffset, NewLUT, ReadMPEElem)) goto Error;
/external/tensorflow/tensorflow/core/lib/random/
Dphilox_random.h49 template <typename T, int ElementCount>
52 static const int kElementCount = ElementCount;
54 for (int i = 0; i < ElementCount; ++i) { in Array()
65 size_t size() const { return ElementCount; } in size()
68 T data_[ElementCount];
/external/tensorflow/tensorflow/stream_executor/
Ddevice_memory.h133 uint64 ElementCount() const { return size() / sizeof(ElemT); } in ElementCount() function
136 bool IsScalar() const { return ElementCount() == 1; } in IsScalar()
180 uint64 ElementCount() const { return size() / kElemSize; } in ElementCount() function
183 bool IsScalar() const { return ElementCount() == 1; } in IsScalar()
Dhost_or_device_scalar.h34 CHECK_EQ(1, pointer.ElementCount()); in HostOrDeviceScalar()
Dstream_executor_pimpl.h849 if (element_offset + element_count > parent->ElementCount()) { in AllocateSubBuffer()
852 << element_count << ") vs. (" << parent->ElementCount() << ")"; in AllocateSubBuffer()
Ddnn.cc344 int64 BatchDescriptor::ElementCount() const { in ElementCount() function in stream_executor::dnn::BatchDescriptor
/external/tensorflow/tensorflow/lite/experimental/micro/testing/
Dtest_utils.h31 inline int ElementCount(const TfLiteIntArray& dims) { in ElementCount() function
109 const size_t bytes = ElementCount(*dims) * sizeof(float); in CreateFloatTensor()
126 const size_t bytes = ElementCount(*dims) * sizeof(uint8_t); in CreateQuantizedTensor()
148 const size_t bytes = ElementCount(*dims) * sizeof(int32_t); in CreateQuantized32Tensor()
/external/tensorflow/tensorflow/stream_executor/cuda/
Dcuda_rng.cc118 uint64 element_count = v->ElementCount(); in DoPopulateRandUniformInternal()
135 LOG(ERROR) << "failed to do uniform generation of " << v->ElementCount() in DoPopulateRandUniformInternal()
174 uint64 element_count = v->ElementCount(); in DoPopulateRandGaussianInternal()
179 LOG(ERROR) << "failed to do gaussian generation of " << v->ElementCount() in DoPopulateRandGaussianInternal()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DMachineValueType.h245 class ElementCount {
250 ElementCount(unsigned Min, bool Scalable) in ElementCount() function
253 ElementCount operator*(unsigned RHS) {
257 ElementCount& operator*=(unsigned RHS) {
262 ElementCount operator/(unsigned RHS) {
266 ElementCount& operator/=(unsigned RHS) {
271 bool operator==(const ElementCount& RHS) {
620 MVT::ElementCount getVectorElementCount() const { in getVectorElementCount()
978 static MVT getVectorVT(MVT VT, MVT::ElementCount EC) { in getVectorVT()
/external/tensorflow/tensorflow/stream_executor/rocm/
Drocm_rng.cc173 uint64 element_count = v->ElementCount(); in DoPopulateRandUniformInternal()
191 LOG(ERROR) << "failed to do uniform generation of " << v->ElementCount() in DoPopulateRandUniformInternal()
229 uint64 element_count = v->ElementCount(); in DoPopulateRandGaussianInternal()
234 LOG(ERROR) << "failed to do gaussian generation of " << v->ElementCount() in DoPopulateRandGaussianInternal()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dbuffer_comparator.cc85 int64 num_elements = ref_buffer.ElementCount(); in Create()
131 int64 num_elements = test_buffer.ElementCount(); in CompareEqualImpl()
165 int64 n = test_buffer.ElementCount(); in CompareEqual()
Dcusolver_context.cc152 ToDevicePointer(workspace), workspace.ElementCount(), \
/external/tensorflow/tensorflow/core/kernels/
Drandom_op_gpu.h45 template <typename T, int ElementCount>
49 T* buf, const tensorflow::random::Array<T, ElementCount>& array) const {
51 for (int i = 0; i < ElementCount; i++) {
Dfused_batch_norm_op.cc346 int channels = inv_var_ptr.ElementCount(); in operator ()()
354 int channels = batch_var_ptr.ElementCount(); in operator ()()
/external/tensorflow/tensorflow/lite/experimental/micro/kernels/
Dsoftmax_test.cc34 const int output_dims_count = ElementCount(*output_dims); in TestSoftmaxFloat()
98 const int output_dims_count = ElementCount(*output_dims); in TestSoftmaxQuantized()
Ddepthwise_conv_test.cc41 const int output_dims_count = ElementCount(*output_dims); in TestDepthwiseConvFloat()
122 const int output_dims_count = ElementCount(*output_dims); in TestDepthwiseConvQuantized()
Dfully_connected_test.cc41 const int output_dims_count = ElementCount(*output_dims); in TestFullyConnectedFloat()
115 const int output_dims_count = ElementCount(*output_dims); in TestFullyConnectedQuantized()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DValueTypes.h85 static EVT getVectorVT(LLVMContext &Context, EVT VT, MVT::ElementCount EC) { in getVectorVT()
281 MVT::ElementCount getVectorElementCount() const { in getVectorElementCount()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/CodeGen/
DScalableVectorMVTsTest.cpp51 auto EltCnt = MVT::ElementCount(2, true); in TEST()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DCore.cpp294 unsigned ElementCount, LLVMBool Packed) { in LLVMStructTypeInContext() argument
295 ArrayRef<Type*> Tys(unwrap(ElementTypes), ElementCount); in LLVMStructTypeInContext()
300 unsigned ElementCount, LLVMBool Packed) { in LLVMStructType() argument
302 ElementCount, Packed); in LLVMStructType()
319 unsigned ElementCount, LLVMBool Packed) { in LLVMStructSetBody() argument
320 ArrayRef<Type*> Tys(unwrap(ElementTypes), ElementCount); in LLVMStructSetBody()
349 LLVMTypeRef LLVMArrayType(LLVMTypeRef ElementType, unsigned ElementCount) { in LLVMArrayType() argument
350 return wrap(ArrayType::get(unwrap(ElementType), ElementCount)); in LLVMArrayType()
357 LLVMTypeRef LLVMVectorType(LLVMTypeRef ElementType, unsigned ElementCount) { in LLVMVectorType() argument
358 return wrap(VectorType::get(unwrap(ElementType), ElementCount)); in LLVMVectorType()
/external/swiftshader/third_party/LLVM/include/llvm-c/
DCore.h408 unsigned ElementCount, LLVMBool Packed);
409 LLVMTypeRef LLVMStructType(LLVMTypeRef *ElementTypes, unsigned ElementCount,
414 unsigned ElementCount, LLVMBool Packed);
424 LLVMTypeRef LLVMArrayType(LLVMTypeRef ElementType, unsigned ElementCount);
426 LLVMTypeRef LLVMVectorType(LLVMTypeRef ElementType, unsigned ElementCount);
/external/llvm/include/llvm-c/
DCore.h993 unsigned ElementCount, LLVMBool Packed);
1000 LLVMTypeRef LLVMStructType(LLVMTypeRef *ElementTypes, unsigned ElementCount,
1023 unsigned ElementCount, LLVMBool Packed);
1095 LLVMTypeRef LLVMArrayType(LLVMTypeRef ElementType, unsigned ElementCount);
1134 LLVMTypeRef LLVMVectorType(LLVMTypeRef ElementType, unsigned ElementCount);
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm-c/
DCore.h1152 unsigned ElementCount, LLVMBool Packed);
1159 LLVMTypeRef LLVMStructType(LLVMTypeRef *ElementTypes, unsigned ElementCount,
1182 unsigned ElementCount, LLVMBool Packed);
1268 LLVMTypeRef LLVMArrayType(LLVMTypeRef ElementType, unsigned ElementCount);
1307 LLVMTypeRef LLVMVectorType(LLVMTypeRef ElementType, unsigned ElementCount);
/external/llvm/lib/IR/
DCore.cpp508 unsigned ElementCount, LLVMBool Packed) { in LLVMStructTypeInContext() argument
509 ArrayRef<Type*> Tys(unwrap(ElementTypes), ElementCount); in LLVMStructTypeInContext()
514 unsigned ElementCount, LLVMBool Packed) { in LLVMStructType() argument
516 ElementCount, Packed); in LLVMStructType()
533 unsigned ElementCount, LLVMBool Packed) { in LLVMStructSetBody() argument
534 ArrayRef<Type*> Tys(unwrap(ElementTypes), ElementCount); in LLVMStructSetBody()
568 LLVMTypeRef LLVMArrayType(LLVMTypeRef ElementType, unsigned ElementCount) { in LLVMArrayType() argument
569 return wrap(ArrayType::get(unwrap(ElementType), ElementCount)); in LLVMArrayType()
576 LLVMTypeRef LLVMVectorType(LLVMTypeRef ElementType, unsigned ElementCount) { in LLVMVectorType() argument
577 return wrap(VectorType::get(unwrap(ElementType), ElementCount)); in LLVMVectorType()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DCore.cpp655 unsigned ElementCount, LLVMBool Packed) { in LLVMStructTypeInContext() argument
656 ArrayRef<Type*> Tys(unwrap(ElementTypes), ElementCount); in LLVMStructTypeInContext()
661 unsigned ElementCount, LLVMBool Packed) { in LLVMStructType() argument
663 ElementCount, Packed); in LLVMStructType()
680 unsigned ElementCount, LLVMBool Packed) { in LLVMStructSetBody() argument
681 ArrayRef<Type*> Tys(unwrap(ElementTypes), ElementCount); in LLVMStructSetBody()
723 LLVMTypeRef LLVMArrayType(LLVMTypeRef ElementType, unsigned ElementCount) { in LLVMArrayType() argument
724 return wrap(ArrayType::get(unwrap(ElementType), ElementCount)); in LLVMArrayType()
731 LLVMTypeRef LLVMVectorType(LLVMTypeRef ElementType, unsigned ElementCount) { in LLVMVectorType() argument
732 return wrap(VectorType::get(unwrap(ElementType), ElementCount)); in LLVMVectorType()

12