Home
last modified time | relevance | path

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

/frameworks/ml/nn/common/operations/
DCast.cpp36 void copyCast(const FromT* in, ToT* out, int numElements) { in copyCast() argument
37 std::transform(in, in + numElements, out, [](FromT a) -> ToT { in copyCast()
47 bool copyToTensor(const FromT* inputData, int numElements, uint8_t* outputData, in copyToTensor() argument
52 copyCast(inputData, reinterpret_cast<dataType*>(outputData), numElements); \ in copyToTensor()
78 int numElements = getNumberOfElements(inputShape); in eval() local
83 copyToTensor(reinterpret_cast<const dataType*>(inputData), numElements, outputData, \ in eval()
DActivation.cpp55 int numElements = getNumberOfElements(inputShape); in reluFloat() local
56 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in reluFloat()
91 int numElements = getNumberOfElements(inputShape); in tanhFloat16() local
92 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in tanhFloat16()
101 int numElements = getNumberOfElements(inputShape); in tanhFloat32() local
102 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in tanhFloat32()
112 int numElements = getNumberOfElements(inputShape); in logisticFloat() local
113 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in logisticFloat()
126 int numElements = getNumberOfElements(inputShape); in reluXQuant8() local
133 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in reluXQuant8()
[all …]
DDequantize.cpp40 const int numElements = getNumberOfElements(inputShape); in compute() local
43 for (int i = 0; i < numElements; ++i) { in compute()
61 const int numElements = getNumberOfElements(inputShape); in computePerChannel() local
64 for (int i = 0; i < numElements; ++i) { in computePerChannel()
DElu.cpp48 int numElements = getNumberOfElements(inputShape); in eluFloat() local
49 for (int i = 0; i < numElements; ++i) { in eluFloat()
DFill.cpp41 const int numElements = getNumberOfElements(context->getOutputShape(kOutputTensor)); in executeTyped() local
43 for (int i = 0; i < numElements; ++i) { in executeTyped()
/frameworks/ml/nn/runtime/test/fuzzing/operation_signatures/
DFullyConnected.cpp29 RandomVariable numElements = 1; in fullyConnectedConstructor() local
32 numElements = numElements * op->inputs[0]->dimensions[i]; in fullyConnectedConstructor()
42 op->outputs[0]->dimensions = {numElements.exactDiv(op->inputs[1]->dimensions[1]), in fullyConnectedConstructor()
DSelection.cpp40 uint32_t numElements = op->inputs[0]->getNumberOfElements(); in embeddingLookupFinalizer() local
41 for (uint32_t i = 0; i < numElements; i++) { in embeddingLookupFinalizer()
142 uint32_t numElements = op->inputs[2]->getNumberOfElements(); in gatherFinalizer() local
143 for (uint32_t i = 0; i < numElements; i++) { in gatherFinalizer()
/frameworks/base/cmds/statsd/src/logd/
DLogEvent.cpp356 uint8_t numElements = readNextValue<uint8_t>(); in parseBuffer() local
357 if (numElements < 2 || numElements > 127) mValid = false; in parseBuffer()
362 numElements--; in parseBuffer()
367 numElements--; in parseBuffer()
370 for (pos[0] = 1; pos[0] <= numElements && mValid; pos[0]++) { in parseBuffer()
371 last[0] = (pos[0] == numElements); in parseBuffer()
/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.cpp258 uint32_t numElements = layerIds.size(); in getChangedCompositionTypes() local
266 outTypes->reserve(numElements); in getChangedCompositionTypes()
267 for (uint32_t element = 0; element < numElements; ++element) { in getChangedCompositionTypes()
361 uint32_t numElements = layerIds.size(); in getRequests() local
369 outLayerRequests->reserve(numElements); in getRequests()
370 for (uint32_t element = 0; element < numElements; ++element) { in getRequests()
451 uint32_t numElements = layerIds.size(); in getReleaseFences() local
457 releaseFences.reserve(numElements); in getReleaseFences()
458 for (uint32_t element = 0; element < numElements; ++element) { in getReleaseFences()
466 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/opt/telephony/src/java/com/android/internal/telephony/
DIntRangeManager.java97 IntRange(IntRange intRange, int numElements) { in IntRange() argument
101 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.py373 numElements = reduce(lambda x,y: x*y, self.type.dimensions, 1)
374 self.value = [0 for x in range(numElements)]
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...