/packages/modules/NeuralNetworks/common/ |
D | LegacyUtils.cpp | 572 static int validateHalVersion(ANeuralNetworksOperationType opType, HalVersion halVersion, in validateHalVersion() argument 575 LOG(ERROR) << "The given inputs and outputs for operation " << opType in validateHalVersion() 733 int validateOperation(ANeuralNetworksOperationType opType, uint32_t inputCount, in validateOperation() argument 744 if (isExtensionOperationType(opType)) { in validateOperation() 755 auto logInvalidInOutNumber = [opType, inputCount, outputCount](int expIn, int expOut) { in validateOperation() 758 << ") for operation " << opType; in validateOperation() 761 switch (opType) { in validateOperation() 774 NN_RETURN_IF_ERROR(validateHalVersion(opType, halVersion, HalVersion::V1_0)); in validateOperation() 778 NN_RETURN_IF_ERROR(validateHalVersion(opType, halVersion, HalVersion::V1_2)); in validateOperation() 782 NN_RETURN_IF_ERROR(validateHalVersion(opType, halVersion, HalVersion::V1_0)); in validateOperation() [all …]
|
D | Validation.cpp | 1308 const auto opType = operands.front().type; in validateMemoryDescImpl() local 1312 NN_VALIDATE_EQ(operand.type, opType) << operand.type << " vs " << operands.front().type; in validateMemoryDescImpl() 1316 if (!isExtension(opType)) { in validateMemoryDescImpl() 1324 if (!isExtension(opType)) { in validateMemoryDescImpl() 1325 NN_VALIDATE(!isNonExtensionScalar(opType) || dimensions.empty()) in validateMemoryDescImpl() 1788 const auto opType = operation.type; in validateOperationButNotOperandsImpl() local 1797 if (isExtension(opType)) { in validateOperationButNotOperandsImpl() 1802 auto invalidInOutNumberMessage = [opType, &inputIndexes, &outputIndexes](int expIn, in validateOperationButNotOperandsImpl() 1807 << ") for operation " << opType; in validateOperationButNotOperandsImpl() 1811 switch (opType) { in validateOperationButNotOperandsImpl() [all …]
|
/packages/modules/NeuralNetworks/runtime/test/fuzzing/operation_signatures/ |
D | Normalization.cpp | 32 .opType = TestOperationType::SOFTMAX, in DEFINE_OPERATION_SIGNATURE() 42 .opType = TestOperationType::SOFTMAX, in DEFINE_OPERATION_SIGNATURE() 52 .opType = TestOperationType::SOFTMAX, in DEFINE_OPERATION_SIGNATURE() 61 .opType = TestOperationType::SOFTMAX, in DEFINE_OPERATION_SIGNATURE() 73 .opType = TestOperationType::SOFTMAX, in DEFINE_OPERATION_SIGNATURE() 82 .opType = TestOperationType::SOFTMAX, in DEFINE_OPERATION_SIGNATURE() 103 .opType = TestOperationType::L2_NORMALIZATION, in DEFINE_OPERATION_SIGNATURE() 112 .opType = TestOperationType::L2_NORMALIZATION, in DEFINE_OPERATION_SIGNATURE() 121 .opType = TestOperationType::L2_NORMALIZATION, in DEFINE_OPERATION_SIGNATURE() 131 .opType = TestOperationType::L2_NORMALIZATION, in DEFINE_OPERATION_SIGNATURE() [all …]
|
D | OperationSignatureUtils.h | 337 #define INPUT_TYPED(opType) \ 341 RandomOperand* op) { defaultOperandConstructor((opType), rank, op); }, \ 364 #define PARAMETER_FILL_BUFFER_HELPER(opType, len, method, ...) \ 365 op->dataType = opType; \ 367 if (kScalarDataType[static_cast<int>(opType)]) { \ 372 op->resizeBuffer<CppType<opType>::type>(length); \ 373 auto data = reinterpret_cast<CppType<opType>::type*>(op->buffer.data()); \ 375 data[i] = method<CppType<opType>::type>(__VA_ARGS__); \ 379 #define PARAMETER_VEC_RANGE(opType, len, low, up) \ 383 PARAMETER_FILL_BUFFER_HELPER(opType, len, getUniform, low, up); \ [all …]
|
D | Broadcast.cpp | 56 if (isQuantizedType(dataType) && op->opType == TestOperationType::MUL) { in broadcastOpConstructor() 63 if (op->opType == TestOperationType::DIV || op->opType == TestOperationType::POW) { in broadcastOpConstructor() 68 if ((op->opType == TestOperationType::ADD || op->opType == TestOperationType::MUL || in broadcastOpConstructor() 69 op->opType == TestOperationType::SUB || op->opType == TestOperationType::DIV) && in broadcastOpConstructor() 74 if (op->opType == TestOperationType::DIV) { in broadcastOpConstructor() 78 if (op->opType == TestOperationType::POW) { in broadcastOpConstructor() 86 .opType = TestOperationType::op, \ 117 DEFINE_OPERATION_SIGNATURE(op##_##ver){.opType = TestOperationType::op, \ 147 .opType = TestOperationType::op, \
|
D | ConcatSplit.cpp | 49 .opType = TestOperationType::CONCATENATION, in DEFINE_OPERATION_SIGNATURE() 61 .opType = TestOperationType::CONCATENATION, in DEFINE_OPERATION_SIGNATURE() 74 .opType = TestOperationType::CONCATENATION, in DEFINE_OPERATION_SIGNATURE() 86 .opType = TestOperationType::CONCATENATION, in DEFINE_OPERATION_SIGNATURE() 99 .opType = TestOperationType::CONCATENATION, in DEFINE_OPERATION_SIGNATURE() 110 .opType = TestOperationType::CONCATENATION, in DEFINE_OPERATION_SIGNATURE() 146 .opType = TestOperationType::SPLIT, in DEFINE_OPERATION_SIGNATURE() 159 .opType = TestOperationType::SPLIT, in DEFINE_OPERATION_SIGNATURE() 172 .opType = TestOperationType::SPLIT, in DEFINE_OPERATION_SIGNATURE() 184 .opType = TestOperationType::SPLIT, in DEFINE_OPERATION_SIGNATURE()
|
D | Reshape.cpp | 52 .opType = TestOperationType::SPACE_TO_DEPTH, \ 67 .opType = TestOperationType::SPACE_TO_DEPTH, \ 107 .opType = TestOperationType::DEPTH_TO_SPACE, \ 123 .opType = TestOperationType::DEPTH_TO_SPACE, \ 155 .opType = TestOperationType::RESHAPE, \ 195 .opType = TestOperationType::BATCH_TO_SPACE_ND, \ 211 .opType = TestOperationType::BATCH_TO_SPACE_ND, \ 271 .opType = TestOperationType::SPACE_TO_BATCH_ND, \ 289 .opType = TestOperationType::SPACE_TO_BATCH_ND, \ 347 .opType = TestOperationType::PAD, \ [all …]
|
D | Elementwise.cpp | 26 switch (op->opType) { in elementwiseOpConstructor() 57 DEFINE_OPERATION_SIGNATURE(op##_##ver){.opType = TestOperationType::op, \ 85 DEFINE_OPERATION_SIGNATURE(op##_##ver){.opType = TestOperationType::op, \ 114 DEFINE_OPERATION_SIGNATURE(op##_##ver){.opType = TestOperationType::op, \ 149 .opType = TestOperationType::op, \ 182 .opType = TestOperationType::CAST, \ 216 .opType = TestOperationType::ELU, in DEFINE_OPERATION_SIGNATURE()
|
D | Convolutions.cpp | 132 .opType = TestOperationType::CONV_2D, \ 152 .opType = TestOperationType::CONV_2D, \ 177 .opType = TestOperationType::CONV_2D, \ 198 .opType = TestOperationType::CONV_2D, \ 216 .opType = TestOperationType::CONV_2D, \ 239 .opType = TestOperationType::CONV_2D, \ 373 .opType = TestOperationType::DEPTHWISE_CONV_2D, \ 395 .opType = TestOperationType::DEPTHWISE_CONV_2D, \ 422 .opType = TestOperationType::DEPTHWISE_CONV_2D, \ 445 .opType = TestOperationType::DEPTHWISE_CONV_2D, \ [all …]
|
D | Resize.cpp | 75 .opType = TestOperationType::op, \ 91 .opType = TestOperationType::op, \ 100 .opType = TestOperationType::op, \ 121 .opType = TestOperationType::op, \ 132 .opType = TestOperationType::op, \
|
D | BoundingBox.cpp | 45 if (op->opType == TestOperationType::ROI_ALIGN) { in roiConstructor() 65 if (op->opType == TestOperationType::ROI_POOLING) { in roiConstructor() 90 if (op->opType == TestOperationType::ROI_ALIGN) { in roiFinalizer() 132 .opType = TestOperationType::ROI_ALIGN, \ 159 .opType = TestOperationType::ROI_POOLING, \ 231 .opType = TestOperationType::HEATMAP_MAX_KEYPOINT, \
|
D | Selection.cpp | 49 .opType = TestOperationType::EMBEDDING_LOOKUP, \ 104 .opType = TestOperationType::HASHTABLE_LOOKUP, in DEFINE_OPERATION_SIGNATURE() 151 .opType = TestOperationType::GATHER, \ 176 .opType = TestOperationType::SELECT, \ 213 .opType = TestOperationType::TOPK_V2, \ 261 .opType = TestOperationType::SLICE, \ 364 .opType = TestOperationType::STRIDED_SLICE, in DEFINE_OPERATION_SIGNATURE() 380 .opType = TestOperationType::STRIDED_SLICE, in DEFINE_OPERATION_SIGNATURE() 394 .opType = TestOperationType::STRIDED_SLICE, in DEFINE_OPERATION_SIGNATURE()
|
D | Reduce.cpp | 58 if (op->opType == TestOperationType::REDUCE_PROD) { in reduceOpConstructor() 65 .opType = TestOperationType::MEAN, \ 80 .opType = TestOperationType::op, \ 117 .opType = TestOperationType::op, \
|
D | FullyConnected.cpp | 49 .opType = TestOperationType::FULLY_CONNECTED, in DEFINE_OPERATION_SIGNATURE() 60 .opType = TestOperationType::FULLY_CONNECTED, in DEFINE_OPERATION_SIGNATURE() 71 .opType = TestOperationType::FULLY_CONNECTED, in DEFINE_OPERATION_SIGNATURE()
|
/packages/modules/NeuralNetworks/common/operations/ |
D | ResizeImageOps.cpp | 111 bool resizeImageOpNhwc(OperationType opType, const T* inputData, const Shape& inputShape, in resizeImageOpNhwc() argument 122 if (opType == OperationType::RESIZE_BILINEAR) { in resizeImageOpNhwc() 128 } else if (opType == OperationType::RESIZE_NEAREST_NEIGHBOR) { in resizeImageOpNhwc() 138 bool resizeImageOpNhwc<_Float16>(OperationType opType, const _Float16* inputData, in resizeImageOpNhwc() argument 145 NN_RET_CHECK(resizeImageOpNhwc(opType, inputData_float32.data(), inputShape, alignCorners, in resizeImageOpNhwc() 152 bool resizeImageOp(OperationType opType, const T* inputData, const Shape& inputShape, bool useNchw, in resizeImageOp() argument 159 NN_RET_CHECK(resizeImageOpNhwc(opType, input.getNhwcBuffer(), input.getNhwcShape(), in resizeImageOp() 177 Result<Version> validate(OperationType opType, const IOperationValidationContext* context) { in validate() argument 179 if (opType == OperationType::RESIZE_BILINEAR) { in validate() 181 } else if (opType == OperationType::RESIZE_NEAREST_NEIGHBOR) { in validate() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/ |
D | RuntimeDocumentClipper.java | 93 Function<String, Uri> uriBuilder, Selection<String> selection, @OpType int opType) { in getClipDataForDocuments() argument 106 return getClipDataForDocuments(uris, opType); in getClipDataForDocuments() 111 List<Uri> uris, @OpType int opType, DocumentInfo parent) { in getClipDataForDocuments() argument 112 ClipData clipData = getClipDataForDocuments(uris, opType); in getClipDataForDocuments() 119 public ClipData getClipDataForDocuments(List<Uri> uris, @OpType int opType) { in getClipDataForDocuments() argument 121 ? createJumboClipData(uris, opType) in getClipDataForDocuments() 122 : createStandardClipData(uris, opType); in getClipDataForDocuments() 128 private ClipData createStandardClipData(List<Uri> uris, @OpType int opType) { in createStandardClipData() argument 138 bundle.putInt(OP_TYPE_KEY, opType); in createStandardClipData() 156 private ClipData createJumboClipData(List<Uri> uris, @OpType int opType) { in createJumboClipData() argument [all …]
|
D | DocumentClipper.java | 50 @OpType int opType); in getClipDataForDocuments() argument 55 ClipData getClipDataForDocuments(List<Uri> uris, @OpType int opType, DocumentInfo parent); in getClipDataForDocuments() argument 60 ClipData getClipDataForDocuments(List<Uri> uris, @OpType int opType); in getClipDataForDocuments() argument 125 @OpType int opType, in copyFromClipData() argument
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestDocumentClipper.java | 45 public final TestEventListener<Integer> opType = new TestEventListener<>(); field in TestDocumentClipper 54 Function<String, Uri> uriBuilder, Selection<String> selection, int opType) { in getClipDataForDocuments() argument 60 @FileOperationService.OpType int opType) { in getClipDataForDocuments() argument 66 @FileOperationService.OpType int opType, DocumentInfo parent) { in getClipDataForDocuments() argument 104 @OpType int opType, Callback callback) { in copyFromClipData() argument 106 this.opType.accept(opType); in copyFromClipData()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/ |
D | DialogController.java | 37 void showFileOperationStatus(int status, int opType, int docCount); in showFileOperationStatus() argument 72 public void showFileOperationStatus(@Status int status, @OpType int opType, int docCount) { in showFileOperationStatus() argument 87 if (shouldShowProgressDialogForOperation(opType)) { in showFileOperationStatus() 93 switch (opType) { in showFileOperationStatus() 110 throw new UnsupportedOperationException("Unsupported Operation: " + opType); in showFileOperationStatus() 114 private boolean shouldShowProgressDialogForOperation(@OpType int opType) { in shouldShowProgressDialogForOperation() argument 116 if (opType == FileOperationService.OPERATION_DELETE) { in shouldShowProgressDialogForOperation()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | DragAndDropManager.java | 343 final @OpType int opType = calculateOpType(mClipData, destRoot); in updateState() local 344 switch (opType) { in updateState() 353 throw new IllegalStateException("Unknown opType: " + opType); in updateState() 399 final @OpType int opType = calculateOpType(clipData, destRoot); in drop() local 404 dropOnRootDocument(clipData, localState, destRoot, doc, opType, callback); in drop() 415 @OpType int opType, in dropOnRootDocument() argument 420 opType, in dropOnRootDocument() 427 opType, in dropOnRootDocument() 450 @OpType int opType, FileOperations.Callback callback) { in dropChecked() argument 461 mClipper.copyFromClipData(dstStack, clipData, opType, callback); in dropChecked()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
D | FileOperation.java | 63 FileOperation(@OpType int opType, UrisSupplier srcs, DocumentStack destination) { in FileOperation() argument 64 checkArgument(opType != OPERATION_UNKNOWN); in FileOperation() 67 mOpType = opType; in FileOperation() 251 private MoveDeleteOperation(@OpType int opType, UrisSupplier srcs, in MoveDeleteOperation() argument 253 super(opType, srcs, destination); in MoveDeleteOperation() 318 public Builder withOpType(@OpType int opType) { in withOpType() argument 319 mOpType = opType; in withOpType()
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/services/ |
D | AbstractJobTest.java | 101 FileOperation createOperation(@OpType int opType, List<Uri> srcs, Uri srcParent, in createOperation() argument 108 .withOpType(opType) in createOperation() 125 final T createJob(@OpType int opType, List<Uri> srcs, Uri srcParent, Uri destination) in createJob() argument 132 .withOpType(opType) in createJob()
|
/packages/modules/NeuralNetworks/runtime/test/fuzzing/ |
D | RandomGraphGenerator.cpp | 83 : opType(operation.opType), finalizer(operation.finalizer) { in RandomOperation() 84 NN_FUZZER_LOG << "Operation: " << opType; in RandomOperation() 297 NN_FUZZER_LOG << "Operation: " << operation.opType; in createTestModel() 298 TestOperation testOperation = {.type = static_cast<TestOperationType>(operation.opType)}; in createTestModel()
|
/packages/modules/NeuralNetworks/driver/sample_aidl/ |
D | SampleDriverQuant.cpp | 56 static bool isQuantized(OperandType opType) { in isQuantized() argument 57 return opType == OperandType::TENSOR_QUANT8_ASYMM || in isQuantized() 58 opType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED; in isQuantized()
|
/packages/modules/NeuralNetworks/driver/sample/ |
D | SampleDriverQuant.cpp | 57 static bool isQuantized(V1_3::OperandType opType) { in isQuantized() argument 58 return opType == V1_3::OperandType::TENSOR_QUANT8_ASYMM || in isQuantized() 59 opType == V1_3::OperandType::TENSOR_QUANT8_ASYMM_SIGNED; in isQuantized()
|