Home
last modified time | relevance | path

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

12345

/packages/modules/NeuralNetworks/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 = getRandomAxis(rank); 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 …]
DOperationSignatureUtils.h169 inline int32_t getRandomAxis(int32_t rank) {
170 return getUniform(-rank, rank - 1);
174 inline int32_t toPositiveAxis(int32_t axis, int32_t rank) {
175 return axis >= 0 ? axis : axis + rank;
245 inline void setFreeDimensions(const std::shared_ptr<RandomOperand>& op, uint32_t rank) {
246 op->dimensions.resize(rank);
247 for (uint32_t i = 0; i < rank; i++) op->dimensions[i] = RandomVariableType::FREE;
261 inline void sameDimensionOpConstructor(TestOperandType, uint32_t rank, RandomOperation* op) {
262 setFreeDimensions(op->inputs[0], rank);
267 inline void sameShapeOpConstructor(TestOperandType dataType, uint32_t rank, RandomOperation* op) {
[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 = getRandomAxis(rank); in reduceOpConstructor()
36 reduce[toPositiveAxis(dim, rank)] = 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 = getRandomAxis(rank); in singleAxisReduceOpConstructor()
108 for (uint32_t i = 0; i < rank; i++) { in singleAxisReduceOpConstructor()
109 if (i != static_cast<uint32_t>(toPositiveAxis(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>(getRandomAxis(rank)); 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>(getRandomAxis(rank)); 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>(getRandomAxis(rank)); in localResponseNormConstructor()
DConvolutions.cpp25 static void conv2DExplicitConstructor(TestOperandType, uint32_t rank, TestHalVersion ver, in conv2DExplicitConstructor() argument
27 NN_FUZZER_CHECK(rank == 4); in conv2DExplicitConstructor()
80 static void conv2DImplicitConstructor(TestOperandType, uint32_t rank, TestHalVersion ver, in conv2DImplicitConstructor() argument
82 NN_FUZZER_CHECK(rank == 4); in conv2DImplicitConstructor()
264 static void depthwiseConv2DExplicitConstructor(TestOperandType, uint32_t rank, TestHalVersion ver, in depthwiseConv2DExplicitConstructor() argument
266 NN_FUZZER_CHECK(rank == 4); in depthwiseConv2DExplicitConstructor()
320 static void depthwiseConv2DImplicitConstructor(TestOperandType, uint32_t rank, TestHalVersion ver, in depthwiseConv2DImplicitConstructor() argument
322 NN_FUZZER_CHECK(rank == 4); in depthwiseConv2DImplicitConstructor()
518 static void groupedConv2DExplicitConstructor(TestOperandType, uint32_t rank, RandomOperation* op) { in groupedConv2DExplicitConstructor() argument
519 NN_FUZZER_CHECK(rank == 4); in groupedConv2DExplicitConstructor()
[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()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderGridOrganizer.java132 public boolean updateRankAndPos(ItemInfo item, int rank) { in updateRankAndPos() argument
133 Point pos = getPosForRank(rank); in updateRankAndPos()
134 if (!pos.equals(item.cellX, item.cellY) || rank != item.rank) { in updateRankAndPos()
135 item.rank = rank; in updateRankAndPos()
146 public Point getPosForRank(int rank) { in getPosForRank() argument
147 int pagePos = rank % mMaxItemsPerPage; in getPosForRank()
162 for (int i = start, rank = 0; i < end; i++, rank++) { in previewItemsForPage()
163 if (isItemInPreview(page, rank)) { in previewItemsForPage()
177 public boolean isItemInPreview(int rank) { in isItemInPreview() argument
178 return isItemInPreview(0, rank); in isItemInPreview()
[all …]
DFolderPagedView.java188 public View createAndAddViewForRank(WorkspaceItemInfo item, int rank) { in createAndAddViewForRank() argument
194 views.add(rank, icon); in createAndAddViewForRank()
203 public void addViewForRank(View view, WorkspaceItemInfo item, int rank) { in addViewForRank() argument
204 int pageNo = rank / mOrganizer.getMaxItemsPerPage(); in addViewForRank()
207 lp.setCellXY(mOrganizer.getPosForRank(rank)); in addViewForRank()
303 int rank = 0; in arrangeChildren() local
320 lp.setCellXY(mOrganizer.getPosForRank(rank)); in arrangeChildren()
323 if (mOrganizer.isItemInPreview(rank) && v instanceof BubbleTextView) { in arrangeChildren()
328 rank++; in arrangeChildren()
389 int rank = rankProvider.applyAsInt(container); in getViewInCurrentPage() local
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/hybridhotseat/
DHotseatPredictionController.java207 for (int rank = 0; rank < mHotSeatItemsCount; rank++) { in fillGapsWithPrediction()
209 mHotseat.getCellXFromOrder(rank), in fillGapsWithPrediction()
210 mHotseat.getCellYFromOrder(rank)); in fillGapsWithPrediction()
235 preparePredictionInfo(predictedItem, rank); in fillGapsWithPrediction()
306 mHotseat.getCellXFromOrder(info.rank), in pinPrediction()
307 mHotseat.getCellYFromOrder(info.rank)); in pinPrediction()
349 int rank = ((WorkspaceItemInfo) icon.getTag()).rank; in removePredictedApps() local
351 mHotseat.getCellXFromOrder(rank), mHotseat.getCellYFromOrder(rank), icon)); in removePredictedApps()
405 private void preparePredictionInfo(WorkspaceItemInfo itemInfo, int rank) { in preparePredictionInfo() argument
407 itemInfo.rank = rank; in preparePredictionInfo()
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/popup/
DPopupPopulatorTest.java81 private String generateId(boolean isStatic, int rank) { in generateId() argument
82 return (isStatic ? "static" : "dynamic") + rank; in generateId()
116 int rank = shortcut.getRank(); in assertIsSorted() local
120 assertTrue(rank > lastStaticRank); in assertIsSorted()
121 lastStaticRank = rank; in assertIsSorted()
125 assertTrue(rank > lastDynamicRank); in assertIsSorted()
126 lastDynamicRank = rank; in assertIsSorted()
142 private ShortcutInfo createInfo(boolean isStatic, int rank) { in createInfo() argument
144 getApplicationContext(), generateId(isStatic, rank)) in createInfo()
145 .setRank(rank) in createInfo()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/
DSearchResult.java69 public final int rank; field in SearchResult
97 rank = builder.mRank; in SearchResult()
108 return this.rank - searchResult.rank; in compareTo()
151 public Builder setRank(int rank) { in setRank() argument
152 if (rank >= 0 && rank <= 9) { in setRank()
153 mRank = rank; in setRank()
/packages/modules/NeuralNetworks/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 …]
/packages/apps/Car/Settings/src/com/android/car/settings/sound/
DVolumeItemParser.java68 int rank = 0; in loadAudioUsageItems() local
80 usage, rank, in loadAudioUsageItems()
84 rank++; in loadAudioUsageItems()
110 public VolumeItem(@AudioAttributes.AttributeUsage int usage, int rank, in VolumeItem() argument
113 mRank = rank; in VolumeItem()
/packages/apps/Settings/src/com/android/settings/notification/history/
DNotificationStation.java284 Ranking rank = new Ranking(); in updateNotificationsFromRanking() local
289 mRanking.getRanking(p.getKey(), rank); in updateNotificationsFromRanking() local
433 Ranking rank = new Ranking(); in updateFromRanking() local
437 mRanking.getRanking(info.key, rank); in updateFromRanking()
438 info.alerted = rank.getLastAudiblyAlertedMillis() > 0; in updateFromRanking()
439 info.visuallyInterruptive = rank.isTextChanged(); in updateFromRanking()
440 info.channel = rank.getChannel(); in updateFromRanking()
451 Ranking rank = new Ranking(); in generateRankingExtraText() local
452 if (mRanking != null && mRanking.getRanking(info.key, rank)) { in generateRankingExtraText()
464 .append(String.valueOf(rank.getConversationShortcutInfo())); in generateRankingExtraText()
[all …]
/packages/modules/IntentResolver/java/tests/src/com/android/intentresolver/
DTestHelpers.kt33 rank: Int in createShareShortcutInfo()
36 createShortcutInfo(id, componentName, rank), in createShareShortcutInfo()
43 rank: Int in createShareShortcutInfo()
51 .setRank(rank) in createShareShortcutInfo()
/packages/apps/Launcher3/src/com/android/launcher3/model/data/
DFolderInfo.java128 public void add(WorkspaceItemInfo item, int rank, boolean animate) { in add() argument
129 rank = Utilities.boundToRange(rank, 0, contents.size()); in add()
130 contents.add(rank, item); in add()
132 mListeners.get(i).onAdd(item, rank); in add()
179 void onAdd(WorkspaceItemInfo item, int rank); in onAdd() argument
220 .setRank(rank) in buildProto()
/packages/modules/NeuralNetworks/common/cpu_operations/
DBatchMatmul.cpp88 int rank = getNumberOfDimensions(inputShape); in transposeRowsColumns() local
89 params.perm_count = rank; in transposeRowsColumns()
90 for (int i = 0; i < rank - 2; ++i) { in transposeRowsColumns()
93 params.perm[rank - 2] = rank - 1; in transposeRowsColumns()
94 params.perm[rank - 1] = rank - 2; in transposeRowsColumns()
DSVDF.cpp82 const int rank = getScalarData<int>(*GetInput(operation, operands, kRankParam)); in Prepare() local
85 NN_CHECK_EQ(num_filters % rank, 0u); 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()
208 tflite::tensor_utils::ReductionSumVector(scratch, outputData, batch_size * num_units, rank); in EvalFloat32()
/packages/modules/NeuralNetworks/runtime/test/fuzzing/
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()
/packages/modules/NeuralNetworks/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)
/packages/modules/NeuralNetworks/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)
Dsvdf.mod.py19 rank = 1 variable
20 units = int(features / rank)
31 rank_param = Int32Scalar("rank_param", rank)

12345