/packages/modules/NeuralNetworks/common/ |
D | LegacyUtils.cpp | 540 static int validateHalVersion(ANeuralNetworksOperationType opType, HalVersion halVersion, in validateHalVersion() argument 543 LOG(ERROR) << "The given inputs and outputs for operation " << opType in validateHalVersion() 701 int validateOperation(ANeuralNetworksOperationType opType, uint32_t inputCount, in validateOperation() argument 712 if (isExtensionOperationType(opType)) { in validateOperation() 723 auto logInvalidInOutNumber = [opType, inputCount, outputCount](int expIn, int expOut) { in validateOperation() 726 << ") for operation " << opType; in validateOperation() 729 switch (opType) { in validateOperation() 742 NN_RETURN_IF_ERROR(validateHalVersion(opType, halVersion, HalVersion::V1_0)); in validateOperation() 746 NN_RETURN_IF_ERROR(validateHalVersion(opType, halVersion, HalVersion::V1_2)); in validateOperation() 750 NN_RETURN_IF_ERROR(validateHalVersion(opType, halVersion, HalVersion::V1_0)); in validateOperation() [all …]
|
D | OperationResolver.cpp | 26 #define NN_FORWARD_DECLARE_OPERATION_REGISTRATION_FUNCTION(opType) \ argument 27 const OperationRegistration* register_##opType(); 65 #define NN_REGISTER_OPERATION_FUNCTION(opType) registerOperation(register_##opType()); in BuiltinOperationResolver() argument
|
/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, \
|
/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/modules/NeuralNetworks/common/cpu_operations/ |
D | ResizeImageOps.cpp | 104 bool resizeImageOpNhwc(OperationType opType, const T* inputData, const Shape& inputShape, in resizeImageOpNhwc() argument 115 if (opType == OperationType::RESIZE_BILINEAR) { in resizeImageOpNhwc() 121 } else if (opType == OperationType::RESIZE_NEAREST_NEIGHBOR) { in resizeImageOpNhwc() 131 bool resizeImageOpNhwc<_Float16>(OperationType opType, const _Float16* inputData, in resizeImageOpNhwc() argument 138 NN_RET_CHECK(resizeImageOpNhwc(opType, inputData_float32.data(), inputShape, alignCorners, in resizeImageOpNhwc() 145 bool resizeImageOp(OperationType opType, const T* inputData, const Shape& inputShape, bool useNchw, in resizeImageOp() argument 152 NN_RET_CHECK(resizeImageOpNhwc(opType, input.getNhwcBuffer(), input.getNhwcShape(), in resizeImageOp() 169 bool prepare(OperationType opType, IOperationExecutionContext* context) { in prepare() argument 206 NN_RET_CHECK_FAIL() << "Unsupported scalar type for operation " << opType; in prepare() 220 bool execute(OperationType opType, IOperationExecutionContext* context) { in execute() argument [all …]
|
/packages/modules/NeuralNetworks/common/types/operations/src/ |
D | Broadcast.cpp | 26 Result<Version> validate(OperationType opType, const IOperationValidationContext* context) { in validate() argument 27 auto minSupportedVersion = (opType == OperationType::DIV || opType == OperationType::SUB) in validate() 41 if (opType == OperationType::SUB) { in validate() 43 } else if (opType == OperationType::DIV) { in validate() 45 } else if (opType == OperationType::MUL) { in validate() 52 if (opType == OperationType::MUL) { in validate() 59 NN_RET_CHECK_FAIL() << "Unsupported tensor type for operation " << opType; in validate()
|
D | ResizeImageOps.cpp | 27 Result<Version> validate(OperationType opType, const IOperationValidationContext* context) { in validate() argument 29 if (opType == OperationType::RESIZE_BILINEAR) { in validate() 31 } else if (opType == OperationType::RESIZE_NEAREST_NEIGHBOR) { in validate() 34 NN_RET_CHECK_FAIL() << "Unsupported operation " << opType; in validate() 45 << "Unsupported tensor type for operation " << opType; in validate()
|
D | Pooling.cpp | 27 Result<Version> validate(OperationType opType, const IOperationValidationContext* context) { in validate() argument 47 } else if (opType != OperationType::L2_POOL_2D && in validate() 59 } else if (opType != OperationType::L2_POOL_2D && in validate() 72 NN_RET_CHECK_FAIL() << "Unsupported input tensor type for operation " << opType; in validate()
|
/packages/modules/NeuralNetworks/common/types/include/ |
D | OperationsValidationUtils.h | 29 #define NN_VALIDATION_FUNCTION_NAME(opType) validate_##opType argument 31 #define NN_VALIDATION_FUNCTION_SIGNATURE(opType) \ argument 32 Result<Version> NN_VALIDATION_FUNCTION_NAME(opType)(const IOperationValidationContext* context) 34 #define NN_DEFINE_VALIDATION_FUNCTION(opType, validate) \ argument 35 NN_VALIDATION_FUNCTION_SIGNATURE(opType) { return validate(context); }
|
/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()
|