Home
last modified time | relevance | path

Searched refs:numElements (Results 1 – 16 of 16) sorted by relevance

/frameworks/ml/nn/common/operations/
DCast.cpp29 void copyCast(const FromT* in, ToT* out, int numElements) { in copyCast() argument
30 std::transform(in, in + numElements, out, [](FromT a) -> ToT { in copyCast()
40 bool copyToTensor(const FromT* inputData, int numElements, uint8_t* outputData, in copyToTensor() argument
45 copyCast(inputData, reinterpret_cast<dataType*>(outputData), numElements); \ in copyToTensor()
74 int numElements = getNumberOfElements(inputShape); in eval() local
79 copyToTensor(reinterpret_cast<const dataType*>(inputData), numElements, outputData, \ in eval()
DActivation.cpp43 int numElements = getNumberOfElements(inputShape); in reluFloat() local
44 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in reluFloat()
79 int numElements = getNumberOfElements(inputShape); in tanhFloat16() local
80 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in tanhFloat16()
89 int numElements = getNumberOfElements(inputShape); in tanhFloat32() local
90 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in tanhFloat32()
100 int numElements = getNumberOfElements(inputShape); in logisticFloat() local
101 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in logisticFloat()
112 int numElements = getNumberOfElements(inputShape); \
119 for (int i = 0; i < numElements; i++, inputData++, outputData++) { \
[all …]
DDequantize.cpp38 const int numElements = getNumberOfElements(inputShape); in compute() local
41 for (int i = 0; i < numElements; ++i) { in compute()
59 const int numElements = getNumberOfElements(inputShape); in computePerChannel() local
62 for (int i = 0; i < numElements; ++i) { in computePerChannel()
/frameworks/ml/nn/runtime/test/fuzzing/operation_signatures/
DFullyConnected.cpp28 RandomVariable numElements = 1; in fullyConnectedConstructor() local
31 numElements = numElements * op->inputs[0]->dimensions[i]; in fullyConnectedConstructor()
41 op->outputs[0]->dimensions = {numElements.exactDiv(op->inputs[1]->dimensions[1]), in fullyConnectedConstructor()
DSelection.cpp36 uint32_t numElements = op->inputs[0]->getNumberOfElements(); in embeddingLookupFinalizer() local
37 for (uint32_t i = 0; i < numElements; i++) { in embeddingLookupFinalizer()
129 uint32_t numElements = op->inputs[2]->getNumberOfElements(); in gatherFinalizer() local
130 for (uint32_t i = 0; i < numElements; i++) { in gatherFinalizer()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DSmallSortedMapTest.java103 private void runPutAndGetTest(int numElements) { in runPutAndGetTest() argument
115 for (int i = 0; i < numElements; i++) { in runPutAndGetTest()
120 for (int i = numElements - 1; i >= 0; i--) { in runPutAndGetTest()
125 assertEquals(Math.min(3, numElements), map1.getNumArrayEntries()); in runPutAndGetTest()
126 assertEquals(Math.min(4, numElements), map2.getNumArrayEntries()); in runPutAndGetTest()
127 assertEquals(Math.min(3, numElements), map3.getNumArrayEntries()); in runPutAndGetTest()
128 assertEquals(Math.min(4, numElements), map4.getNumArrayEntries()); in runPutAndGetTest()
138 assertEquals(numElements, map.size()); in runPutAndGetTest()
139 for (int i = 0; i < numElements; i++) { in runPutAndGetTest()
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
DUtils.java64 public static UiObject2 startElementLayout(Instrumentation instrumentation, int numElements) { in startElementLayout() argument
68 intent.putExtra(ElementLayoutActivity.NUM_ELEMENTS_KEY, numElements); in startElementLayout()
DElementLayoutActivity.java62 int numElements = getIntent().getIntExtra(NUM_ELEMENTS_KEY, DEFAULT_NUM_ELEMENTS); in onCreate() local
64 for (int i = 0; i < numElements; ++i) { in onCreate()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWC2.cpp375 uint32_t numElements = layerIds.size(); in getChangedCompositionTypes() local
383 outTypes->reserve(numElements); in getChangedCompositionTypes()
384 for (uint32_t element = 0; element < numElements; ++element) { in getChangedCompositionTypes()
478 uint32_t numElements = layerIds.size(); in getRequests() local
486 outLayerRequests->reserve(numElements); in getRequests()
487 for (uint32_t element = 0; element < numElements; ++element) { in getRequests()
558 uint32_t numElements = layerIds.size(); in getReleaseFences() local
564 releaseFences.reserve(numElements); in getReleaseFences()
565 for (uint32_t element = 0; element < numElements; ++element) { in getReleaseFences()
573 for (; element < numElements; ++element) { in getReleaseFences()
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastDispatcher.java676 final int numElements = list.size(); in findUidLocked() local
677 for (int i = 0; i < numElements; i++) { in findUidLocked()
703 final int numElements = list.size(); in insertLocked() local
704 for (i = 0; i < numElements; i++) { in insertLocked()
/frameworks/native/services/surfaceflinger/tests/hwc2/
DHwc2Test.cpp616 uint32_t numElements = 0; in getDisplayRequests() local
619 reinterpret_cast<int32_t*>(outDisplayRequests), &numElements, in getDisplayRequests()
622 if (err == HWC2_ERROR_NONE && numElements > 0) { in getDisplayRequests()
623 outLayers->resize(numElements); in getDisplayRequests()
624 outLayerRequests->resize(numElements); in getDisplayRequests()
627 reinterpret_cast<int32_t*>(outDisplayRequests), &numElements, in getDisplayRequests()
684 uint32_t numElements = 0; in getChangedCompositionTypes() local
687 &numElements, nullptr, nullptr)); in getChangedCompositionTypes()
689 if (err == HWC2_ERROR_NONE && numElements > 0) { in getChangedCompositionTypes()
690 outLayers->resize(numElements); in getChangedCompositionTypes()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DIntRangeManager.java95 IntRange(IntRange intRange, int numElements) { in IntRange() argument
99 for (int i=0; i < numElements; i++) { in IntRange()
/frameworks/base/core/java/android/app/
DActivityTransitionCoordinator.java1011 final int numElements = mTransitioningViews == null ? 0 : mTransitioningViews.size(); in setTransitioningViewsVisiblity() local
1012 for (int i = 0; i < numElements; i++) { in setTransitioningViewsVisiblity()
DFragmentTransition.java814 final int numElements = map.size(); in findKeyForValue() local
815 for (int i = 0; i < numElements; i++) { in findKeyForValue()
/frameworks/compile/slang/
Dslang_rs_export_type.cpp224 unsigned numElements = EVT->getNumElements(); in ConstantArrayTypeExportableHelper() local
233 if (numElements == 3 && CAT->getSize() != 1) { in ConstantArrayTypeExportableHelper()
/frameworks/ml/nn/tools/test_generator/
Dtest_generator.py370 numElements = reduce(lambda x,y: x*y, self.dimensions, 1)
371 self.value = [0 for x in range(numElements)]