Home
last modified time | relevance | path

Searched refs:opType (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/ml/nn/runtime/test/fuzzing/operation_signatures/
DNormalization.cpp32 .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 …]
DOperationSignatureUtils.h327 #define INPUT_TYPED(opType) \
331 RandomOperand* op) { defaultOperandConstructor((opType), rank, op); }, \
354 #define PARAMETER_FILL_BUFFER_HELPER(opType, len, method, ...) \
355 op->dataType = opType; \
357 if (kScalarDataType[static_cast<int>(opType)]) { \
362 op->resizeBuffer<CppType<opType>::type>(length); \
363 auto data = reinterpret_cast<CppType<opType>::type*>(op->buffer.data()); \
365 data[i] = method<CppType<opType>::type>(__VA_ARGS__); \
369 #define PARAMETER_VEC_RANGE(opType, len, low, up) \
373 PARAMETER_FILL_BUFFER_HELPER(opType, len, getUniform, low, up); \
[all …]
DBroadcast.cpp56 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, \
DConcatSplit.cpp49 .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()
DReshape.cpp52 .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 …]
DResize.cpp75 .opType = TestOperationType::op, \
91 .opType = TestOperationType::op, \
100 .opType = TestOperationType::op, \
121 .opType = TestOperationType::op, \
132 .opType = TestOperationType::op, \
DElementwise.cpp26 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()
DFullyConnected.cpp49 .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()
DBoundingBox.cpp45 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, \
DReduce.cpp58 if (op->opType == TestOperationType::REDUCE_PROD) { in reduceOpConstructor()
65 .opType = TestOperationType::MEAN, \
80 .opType = TestOperationType::op, \
117 .opType = TestOperationType::op, \
DConvolutions.cpp132 .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 …]
DSelection.cpp49 .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()
DPoolings.cpp103 .opType = TestOperationType::op, \
123 .opType = TestOperationType::op, \
152 .opType = TestOperationType::op, \
173 .opType = TestOperationType::op, \
/frameworks/ml/nn/common/operations/
DResizeImageOps.cpp109 bool resizeImageOpNhwc(OperationType opType, const T* inputData, const Shape& inputShape, in resizeImageOpNhwc() argument
120 if (opType == OperationType::RESIZE_BILINEAR) { in resizeImageOpNhwc()
126 } else if (opType == OperationType::RESIZE_NEAREST_NEIGHBOR) { in resizeImageOpNhwc()
136 bool resizeImageOpNhwc<_Float16>(OperationType opType, const _Float16* inputData, in resizeImageOpNhwc() argument
143 NN_RET_CHECK(resizeImageOpNhwc(opType, inputData_float32.data(), inputShape, alignCorners, in resizeImageOpNhwc()
150 bool resizeImageOp(OperationType opType, const T* inputData, const Shape& inputShape, bool useNchw, in resizeImageOp() argument
157 NN_RET_CHECK(resizeImageOpNhwc(opType, input.getNhwcBuffer(), input.getNhwcShape(), in resizeImageOp()
174 bool validate(OperationType opType, const IOperationValidationContext* context) { in validate() argument
176 if (opType == OperationType::RESIZE_BILINEAR) { in validate()
178 } else if (opType == OperationType::RESIZE_NEAREST_NEIGHBOR) { in validate()
[all …]
DActivation.cpp359 bool validate(OperationType opType, const IOperationValidationContext* context) { in validate() argument
368 if (opType == OperationType::TANH) { in validate()
376 NN_RET_CHECK_FAIL() << "Unsupported tensor type for operation " << getOperationName(opType); in validate()
399 bool prepare(OperationType opType, IOperationExecutionContext* context) { in prepare() argument
401 if (opType != OperationType::HARD_SWISH) { in prepare()
408 switch (opType) { in prepare()
DBroadcast.cpp438 bool validate(OperationType opType, const IOperationValidationContext* context) { in validate() argument
439 const HalVersion opIntroducedAt = (opType == OperationType::DIV || opType == OperationType::SUB) in validate()
450 if (opType == OperationType::SUB) { in validate()
452 } else if (opType == OperationType::DIV) { in validate()
454 } else if (opType == OperationType::MUL) { in validate()
467 NN_RET_CHECK_FAIL() << "Unsupported tensor type for operation " << getOperationName(opType); in validate()
DPooling.cpp293 bool validate(OperationType opType, const IOperationValidationContext* context) { in validate() argument
312 } else if (opType != OperationType::L2_POOL_2D && in validate()
324 } else if (opType != OperationType::L2_POOL_2D && in validate()
338 << getOperationName(opType); in validate()
/frameworks/ml/nn/common/
DUtils.cpp684 static int validateHalVersion(ANeuralNetworksOperationType opType, HalVersion halVersion, in validateHalVersion() argument
687 LOG(ERROR) << "The given inputs and outputs for operation " << getOperationName(opType) in validateHalVersion()
847 static inline int validateOperation(ANeuralNetworksOperationType opType, uint32_t inputCount, in validateOperation() argument
852 if (opType == ANEURALNETWORKS_IF || opType == ANEURALNETWORKS_WHILE) { in validateOperation()
853 NN_RETURN_IF_ERROR(validateHalVersion(opType, halVersion, HalVersion::V1_3)); in validateOperation()
857 return validateOperation(opType, inputCount, inputIndexes, outputCount, outputIndexes, operands, in validateOperation()
861 int validateOperation(ANeuralNetworksOperationType opType, uint32_t inputCount, in validateOperation() argument
872 if (isExtensionOperationType(opType)) { in validateOperation()
883 auto logInvalidInOutNumber = [opType, inputCount, outputCount](int expIn, int expOut) { in validateOperation()
886 << ") for operation " << getOperationName(opType); in validateOperation()
[all …]
/frameworks/ml/nn/driver/sample/
DSampleDriverQuant.cpp60 static bool isQuantized(OperandType opType) { in isQuantized() argument
61 return opType == OperandType::TENSOR_QUANT8_ASYMM || in isQuantized()
62 opType == OperandType::TENSOR_QUANT8_ASYMM_SIGNED; in isQuantized()
/frameworks/ml/nn/runtime/test/fuzzing/
DRandomGraphGenerator.cpp83 : opType(operation.opType), finalizer(operation.finalizer) { in RandomOperation()
84 NN_FUZZER_LOG << "Operation: " << toString(opType); in RandomOperation()
297 NN_FUZZER_LOG << "Operation: " << toString(operation.opType); in createTestModel()
298 TestOperation testOperation = {.type = static_cast<TestOperationType>(operation.opType)}; in createTestModel()
DOperationManager.cpp37 if (!hasValue(filter.opcodes, opType) || !hasValue(filter.versions, version)) { in matchFilter()
DOperationManager.h71 test_helper::TestOperationType opType; member
DRandomGraphGenerator.h115 test_helper::TestOperationType opType; member
/frameworks/ml/nn/tools/test_generator/
Dtest_generator.py257 def __init__(self, name, opType, value, backward=None, skipRenaming=False, extraParams=None): argument
259 if type(opType) is str:
260 self.type = Type.GetTypeFromString(opType, value, extraParams)
263 self.type = Type.GetType(*opType, extraParams=extraParams)
313 def __init__(self, name, opType, backward=None, skipRenaming=False, extraParams=None): argument
314 …Operand.__init__(self, name, opType, backward, None, skipRenaming=skipRenaming, extraParams=extraP…
324 def __init__(self, name, opType, backward=None, skipRenaming=False, extraParams=None): argument
325 … InOut.__init__(self, name, opType, backward, skipRenaming=skipRenaming, extraParams=extraParams)
330 def __init__(self, name, opType, backward=None, skipRenaming=False, extraParams=None): argument
331 … InOut.__init__(self, name, opType, backward, skipRenaming=skipRenaming, extraParams=extraParams)
[all …]
/frameworks/base/core/java/com/android/internal/app/procstats/
DServiceState.java391 public long getDuration(int opType, int curState, long startTime, int memFactor, in getDuration() argument
393 int state = opType + (memFactor*SERVICE_COUNT); in getDuration()
588 public void writeTypeToProto(ProtoOutputStream proto, long fieldId, int opType, int serviceType,
595 proto.write(PackageServiceOperationStatsProto.OPERATION, opType);

12