/packages/modules/NeuralNetworks/common/operations/ |
D | Cast.cpp | 33 void copyCast(const FromT* in, ToT* out, int numElements) { in copyCast() argument 34 std::transform(in, in + numElements, out, [](FromT a) -> ToT { in copyCast() 44 bool copyToTensor(const FromT* inputData, int numElements, uint8_t* outputData, in copyToTensor() argument 49 copyCast(inputData, reinterpret_cast<dataType*>(outputData), numElements); \ in copyToTensor() 75 int numElements = getNumberOfElements(inputShape); in eval() local 80 copyToTensor(reinterpret_cast<const dataType*>(inputData), numElements, outputData, \ in eval()
|
D | Activation.cpp | 56 int numElements = getNumberOfElements(inputShape); in reluFloat() local 57 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in reluFloat() 92 int numElements = getNumberOfElements(inputShape); in tanhFloat16() local 93 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in tanhFloat16() 102 int numElements = getNumberOfElements(inputShape); in tanhFloat32() local 103 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in tanhFloat32() 113 int numElements = getNumberOfElements(inputShape); in logisticFloat() local 114 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in logisticFloat() 127 int numElements = getNumberOfElements(inputShape); in reluXQuant8() local 134 for (int i = 0; i < numElements; i++, inputData++, outputData++) { in reluXQuant8() [all …]
|
D | Dequantize.cpp | 37 const int numElements = getNumberOfElements(inputShape); in compute() local 40 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()
|
D | Elu.cpp | 45 int numElements = getNumberOfElements(inputShape); in eluFloat() local 46 for (int i = 0; i < numElements; ++i) { in eluFloat()
|
D | Fill.cpp | 38 const int numElements = getNumberOfElements(context->getOutputShape(kOutputTensor)); in executeTyped() local 40 for (int i = 0; i < numElements; ++i) { in executeTyped()
|
/packages/modules/StatsD/lib/libstatssocket/ |
D | stats_event.c | 76 uint32_t numElements; member 94 event->numElements = 0; in AStatsEvent_obtain() 114 if (event->numElements != 1) { in AStatsEvent_setAtomId() 210 event->numElements++; in start_field() 282 if (event->numElements < 2) { in AStatsEvent_addBoolAnnotation() 297 if (event->numElements < 2) { in AStatsEvent_addInt32Annotation() 325 if (event->numElements > MAX_BYTE_VALUE) event->errors |= ERROR_TOO_MANY_FIELDS; in build_internal() 333 event->numElements = 2; in build_internal() 342 event->buf[POS_NUM_ELEMENTS] = event->numElements; in build_internal()
|
/packages/services/Car/tools/emulator/ |
D | diagnostic_builder.py | 27 def __init__(self, numElements): argument 28 self.count = numElements 29 if 0 == (numElements % 8): 30 self.data = bytearray(numElements/8) 33 self.data = bytearray(1+numElements/8)
|
/packages/modules/NeuralNetworks/runtime/test/fuzzing/operation_signatures/ |
D | FullyConnected.cpp | 29 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()
|
D | Selection.cpp | 40 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()
|
/packages/modules/StatsD/statsd/src/logd/ |
D | LogEvent.cpp | 375 uint8_t numElements = readNextValue<uint8_t>(); in parseBuffer() local 376 if (numElements < 2 || numElements > 127) mValid = false; in parseBuffer() 381 numElements--; in parseBuffer() 386 numElements--; in parseBuffer() 389 for (pos[0] = 1; pos[0] <= numElements && mValid; pos[0]++) { in parseBuffer() 390 last[0] = (pos[0] == numElements); in parseBuffer()
|
/packages/modules/StatsD/lib/libstatssocket/tests/ |
D | stats_event_test.cpp | 97 void checkMetadata(uint8_t** buffer, uint8_t numElements, int64_t startTime, int64_t endTime, in checkMetadata() argument 104 checkScalar(buffer, static_cast<uint8_t>(numElements + 2)); in checkMetadata()
|
/packages/modules/NeuralNetworks/tools/test_generator/ |
D | test_generator.py | 340 numElements = reduce(lambda x,y: x*y, self.type.dimensions, 1) 341 self.value = [0 for x in range(numElements)]
|