Home
last modified time | relevance | path

Searched refs:rank (Results 1 – 25 of 80) sorted by relevance

1234

/frameworks/ml/nn/runtime/test/fuzzing/operation_signatures/
DConcatSplit.cpp24 static void concatConstructor(uint32_t numInputs, bool isV1_0, uint32_t rank, RandomOperation* op) { in concatConstructor() argument
26 op->inputs[i]->dimensions.resize(rank); in concatConstructor()
29 op->outputs[0]->dimensions.resize(rank); in concatConstructor()
31 int32_t axis = getUniform<int32_t>(0, rank - 1); in concatConstructor()
33 for (uint32_t i = 0; i < rank; i++) { in concatConstructor()
56 .constructor = [](TestOperandType, uint32_t rank, RandomOperation* op) { in DEFINE_OPERATION_SIGNATURE() argument
57 concatConstructor(/*numInputs=*/2, /*isV1_0=*/true, rank, op); in DEFINE_OPERATION_SIGNATURE()
69 .constructor = [](TestOperandType, uint32_t rank, RandomOperation* op) { in DEFINE_OPERATION_SIGNATURE() argument
70 concatConstructor(/*numInputs=*/3, /*isV1_0=*/true, rank, op); in DEFINE_OPERATION_SIGNATURE()
81 .constructor = [](TestOperandType, uint32_t rank, RandomOperation* op) { in DEFINE_OPERATION_SIGNATURE() argument
[all …]
DSelection.cpp27 static void embeddingLookupConstructor(TestOperandType, uint32_t rank, RandomOperation* op) { in embeddingLookupConstructor() argument
29 setFreeDimensions(op->inputs[1], rank); in embeddingLookupConstructor()
30 op->outputs[0]->dimensions.resize(rank); in embeddingLookupConstructor()
32 for (uint32_t i = 1; i < rank; i++) { in embeddingLookupConstructor()
64 static void hashtableLookupConstructor(TestOperandType, uint32_t rank, RandomOperation* op) { in hashtableLookupConstructor() argument
67 op->inputs[2]->dimensions.resize(rank); in hashtableLookupConstructor()
68 op->outputs[0]->dimensions.resize(rank); in hashtableLookupConstructor()
71 for (uint32_t i = 1; i < rank; i++) { in hashtableLookupConstructor()
115 static void gatherConstructor(TestOperandType, uint32_t rank, RandomOperation* op) { in gatherConstructor() argument
117 int32_t axis = getUniform<int32_t>(-rank, rank - 1); in gatherConstructor()
[all …]
DReshape.cpp26 static void spaceToDepthConstructor(TestOperandType, uint32_t rank, RandomOperation* op) { in spaceToDepthConstructor() argument
27 NN_FUZZER_CHECK(rank == 4); in spaceToDepthConstructor()
81 static void depthToSpaceConstructor(TestOperandType, uint32_t rank, RandomOperation* op) { in depthToSpaceConstructor() argument
82 NN_FUZZER_CHECK(rank == 4); in depthToSpaceConstructor()
137 static void reshapeConstructor(TestOperandType, uint32_t rank, RandomOperation* op) { in reshapeConstructor() argument
138 setFreeDimensions(op->inputs[0], rank); in reshapeConstructor()
139 op->inputs[1]->dimensions = {rank}; in reshapeConstructor()
140 op->inputs[1]->randomBuffer.resize(rank); in reshapeConstructor()
143 for (uint32_t i = 0; i < rank; i++) { in reshapeConstructor()
169 static void batchToSpaceConstructor(TestOperandType, uint32_t rank, RandomOperation* op) { in batchToSpaceConstructor() argument
[all …]
DReduce.cpp23 static void reduceOpConstructor(TestOperandType, uint32_t rank, RandomOperation* op) { in reduceOpConstructor() argument
24 setFreeDimensions(op->inputs[0], rank); in reduceOpConstructor()
34 int32_t dim = getUniform<int32_t>(-rank, rank - 1); in reduceOpConstructor()
36 reduce[dim < 0 ? dim + rank : dim] = true; in reduceOpConstructor()
47 for (uint32_t i = 0; i < rank; i++) { in reduceOpConstructor()
102 static void singleAxisReduceOpConstructor(TestOperandType, uint32_t rank, RandomOperation* op) { in singleAxisReduceOpConstructor() argument
103 setFreeDimensions(op->inputs[0], rank); in singleAxisReduceOpConstructor()
106 int32_t axis = getUniform<int32_t>(-rank, rank - 1); in singleAxisReduceOpConstructor()
108 for (uint32_t i = 0; i < rank; i++) { in singleAxisReduceOpConstructor()
109 if (i != static_cast<uint32_t>(axis) && i != axis + rank) { in singleAxisReduceOpConstructor()
DNormalization.cpp23 static void softmaxConstructor(TestOperandType dataType, uint32_t rank, RandomOperation* op) { in softmaxConstructor() argument
24 sameDimensionOpConstructor(dataType, rank, op); in softmaxConstructor()
27 op->inputs[2]->setScalarValue<int32_t>(getUniform<int32_t>(-rank, rank - 1)); in softmaxConstructor()
91 static void l2normConstructor(TestOperandType dataType, uint32_t rank, RandomOperation* op) { in l2normConstructor() argument
92 sameDimensionOpConstructor(dataType, rank, op); in l2normConstructor()
95 op->inputs[1]->setScalarValue<int32_t>(getUniform<int32_t>(-rank, rank - 1)); in l2normConstructor()
158 static void localResponseNormConstructor(TestOperandType dataType, uint32_t rank, in localResponseNormConstructor() argument
160 sameDimensionOpConstructor(dataType, rank, op); in localResponseNormConstructor()
163 op->inputs[5]->setScalarValue<int32_t>(getUniform<int32_t>(-rank, rank - 1)); in localResponseNormConstructor()
DOperationSignatureUtils.h235 inline void setFreeDimensions(const std::shared_ptr<RandomOperand>& op, uint32_t rank) {
236 op->dimensions.resize(rank);
237 for (uint32_t i = 0; i < rank; i++) op->dimensions[i] = RandomVariableType::FREE;
251 inline void sameDimensionOpConstructor(TestOperandType, uint32_t rank, RandomOperation* op) {
252 setFreeDimensions(op->inputs[0], rank);
257 inline void sameShapeOpConstructor(TestOperandType dataType, uint32_t rank, RandomOperation* op) {
258 sameDimensionOpConstructor(dataType, rank, op);
330 .constructor = [](TestOperandType, uint32_t rank, \
331 RandomOperand* op) { defaultOperandConstructor((opType), rank, op); }, \
343 [](TestOperandType dataType, uint32_t rank, RandomOperand* op) { \
[all …]
DBroadcast.cpp25 static void broadcastOpConstructor(TestOperandType dataType, uint32_t rank, RandomOperation* op) { in broadcastOpConstructor() argument
26 const uint32_t rank2 = getUniform(1u, rank), rankDiff = rank - rank2; in broadcastOpConstructor()
27 op->inputs[0]->dimensions.resize(rank); in broadcastOpConstructor()
29 op->outputs[0]->dimensions.resize(rank); in broadcastOpConstructor()
30 for (uint32_t i = 0; i < rank; i++) { in broadcastOpConstructor()
DFullyConnected.cpp25 static void fullyConnectedConstructor(TestOperandType, uint32_t rank, TestHalVersion ver, in fullyConnectedConstructor() argument
28 op->inputs[0]->dimensions.resize(rank); in fullyConnectedConstructor()
30 for (uint32_t i = 0; i < rank; i++) { in fullyConnectedConstructor()
/frameworks/base/core/java/com/android/internal/statusbar/
DNotificationVisibility.java35 public int rank; field in NotificationVisibility
77 private NotificationVisibility(String key, int rank, int count, boolean visible, in NotificationVisibility() argument
81 this.rank = rank; in NotificationVisibility()
91 + " rank=" + rank in toString()
100 return obtain(this.key, this.rank, this.count, this.visible, this.location); in clone()
127 out.writeInt(this.rank); in writeToParcel()
135 this.rank = in.readInt(); in readFromParcel()
144 public static NotificationVisibility obtain(String key, int rank, int count, boolean visible) { in obtain() argument
145 return obtain(key, rank, count, visible, in obtain()
152 public static NotificationVisibility obtain(String key, int rank, int count, boolean visible, in obtain() argument
[all …]
/frameworks/av/media/codec2/sfplugin/
DCodec2InfoBuilder.cpp351 C2Component::rank_t rank = trait.rank; in buildMediaCodecList() local
402 rank = 1; in buildMediaCodecList()
409 rank = std::numeric_limits<decltype(rank)>::max(); in buildMediaCodecList()
418 rank = 1; in buildMediaCodecList()
423 rank = std::numeric_limits<decltype(rank)>::max(); in buildMediaCodecList()
429 rank = 1; in buildMediaCodecList()
489 if (!codec.rank.empty()) { in buildMediaCodecList()
492 if (sscanf(codec.rank.c_str(), "%u%c", &xmlRank, &dummy) == 1) { in buildMediaCodecList()
493 rank = xmlRank; in buildMediaCodecList()
496 ALOGV("rank: %u", (unsigned)rank); in buildMediaCodecList()
[all …]
/frameworks/base/core/java/android/provider/
DSearchIndexableResource.java53 public SearchIndexableResource(int rank, int xmlResId, String className, int iconResId) { in SearchIndexableResource() argument
55 this.rank = rank; in SearchIndexableResource()
/frameworks/ml/nn/runtime/test/generated/spec_V1_3/
Drank.example.cpp7 namespace generated_tests::rank { namespace
54 namespace generated_tests::rank { namespace
135 namespace generated_tests::rank { namespace
182 namespace generated_tests::rank { namespace
229 namespace generated_tests::rank { namespace
310 namespace generated_tests::rank { namespace
357 namespace generated_tests::rank { namespace
438 namespace generated_tests::rank { namespace
485 namespace generated_tests::rank { namespace
566 namespace generated_tests::rank { namespace
[all …]
/frameworks/ml/nn/runtime/test/specs/V1_2/
Dsvdf_float16.mod.py19 rank = 1 variable
20 units = int(features / rank)
31 rank_param = Int32Scalar("rank_param", rank)
Dsvdf_bias_present_float16.mod.py19 rank = 1 variable
20 units = int(features / rank)
31 rank_param = Int32Scalar("rank_param", rank)
/frameworks/ml/nn/runtime/test/specs/V1_0/
Dsvdf_bias_present.mod.py19 rank = 1 variable
20 units = int(features / rank)
31 rank_param = Int32Scalar("rank_param", rank)
Dsvdf2.mod.py19 rank = 2 variable
20 units = int(features / rank)
31 rank_param = Int32Scalar("rank_param", rank)
Dsvdf.mod.py19 rank = 1 variable
20 units = int(features / rank)
31 rank_param = Int32Scalar("rank_param", rank)
/frameworks/ml/nn/runtime/test/fuzzing/
DOperationManager.cpp51 for (auto rank : supportedRanks) { in matchFilter() local
52 if (hasValue(filter.ranks, rank)) combinedRanks.push_back(rank); in matchFilter()
DRandomGraphGenerator.cpp45 uint32_t rank) in RandomOperand() argument
48 if (operand.constructor) operand.constructor(dataType, rank, this); in RandomOperand()
88 uint32_t rank = getRandomChoice(operation.supportedRanks); in RandomOperation() local
92 inputs.emplace_back(new RandomOperand(op, dataType, rank)); in RandomOperation()
95 outputs.emplace_back(new RandomOperand(op, dataType, rank)); in RandomOperation()
97 if (operation.constructor) operation.constructor(dataType, rank, this); in RandomOperation()
/frameworks/ml/nn/runtime/test/specs/V1_1/
Dsvdf2_relaxed.mod.py19 rank = 2 variable
20 units = int(features / rank)
31 rank_param = Int32Scalar("rank_param", rank)
Dsvdf_relaxed.mod.py19 rank = 1 variable
20 units = int(features / rank)
31 rank_param = Int32Scalar("rank_param", rank)
Dsvdf_bias_present_relaxed.mod.py19 rank = 1 variable
20 units = int(features / rank)
31 rank_param = Int32Scalar("rank_param", rank)
/frameworks/av/media/libstagefright/
DOmxInfoBuilder.cpp165 uint32_t rank = isSoftware in buildMediaCodecList() local
171 uint32_t oldRank = rank; in buildMediaCodecList()
173 if (sscanf(attribute.value.c_str(), "%u%c", &rank, &dummy) != 1) { in buildMediaCodecList()
174 rank = oldRank; in buildMediaCodecList()
189 info->setRank(rank); in buildMediaCodecList()
/frameworks/av/media/libstagefright/xmlparser/test/
DXMLParserTest.cpp63 string rank);
178 string rank) { in setCodecProperties() argument
195 codecProperty.codecProp.rank = rank; in setCodecProperties()
226 string rank = properties.rank; in printCodecMap() local
227 ALOGV("rank = %s\n", rank.c_str()); in printCodecMap()
323 ASSERT_EQ(mInputDataVector.at(index).codecProp.rank, properties.rank) in TEST_F()
/frameworks/ml/nn/common/operations/
DSVDF.cpp82 const int rank = getScalarData<int>(*GetInput(operation, operands, kRankParam)); in Prepare() local
85 NN_CHECK_EQ(num_filters % rank, 0); in Prepare()
86 const uint32_t num_units = num_filters / rank; in Prepare()
169 const int rank = params_.rank_; in EvalFloat32() local
173 const int num_units = num_filters / rank; in EvalFloat32()
217 rank); in EvalFloat32()

1234