Home
last modified time | relevance | path

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

1234

/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.java187 public View createAndAddViewForRank(WorkspaceItemInfo item, int rank) { in createAndAddViewForRank() argument
193 views.add(rank, icon); in createAndAddViewForRank()
202 public void addViewForRank(View view, WorkspaceItemInfo item, int rank) { in addViewForRank() argument
203 int pageNo = rank / mOrganizer.getMaxItemsPerPage(); in addViewForRank()
206 lp.setCellXY(mOrganizer.getPosForRank(rank)); in addViewForRank()
302 int rank = 0; in arrangeChildren() local
319 lp.setCellXY(mOrganizer.getPosForRank(rank)); in arrangeChildren()
322 if (mOrganizer.isItemInPreview(rank) && v instanceof BubbleTextView) { in arrangeChildren()
327 rank++; in arrangeChildren()
388 int rank = rankProvider.applyAsInt(container); in getViewInCurrentPage() local
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/hybridhotseat/
DHotseatPredictionController.java217 for (int rank = 0; rank < mHotSeatItemsCount; rank++) { in fillGapsWithPrediction()
219 mHotseat.getCellXFromOrder(rank), in fillGapsWithPrediction()
220 mHotseat.getCellYFromOrder(rank)); in fillGapsWithPrediction()
241 preparePredictionInfo(predictedItem, rank); in fillGapsWithPrediction()
342 mHotseat.getCellXFromOrder(info.rank), in pinPrediction()
343 mHotseat.getCellYFromOrder(info.rank)); in pinPrediction()
385 int rank = ((WorkspaceItemInfo) icon.getTag()).rank; in removePredictedApps() local
387 mHotseat.getCellXFromOrder(rank), mHotseat.getCellYFromOrder(rank), icon)); in removePredictedApps()
441 private void preparePredictionInfo(WorkspaceItemInfo itemInfo, int rank) { in preparePredictionInfo() argument
443 itemInfo.rank = rank; in preparePredictionInfo()
[all …]
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/popup/
DPopupPopulatorTest.java77 private String generateId(boolean isStatic, int rank) { in generateId() argument
78 return (isStatic ? "static" : "dynamic") + rank; in generateId()
112 int rank = shortcut.getRank(); in assertIsSorted() local
116 assertTrue(rank > lastStaticRank); in assertIsSorted()
117 lastStaticRank = rank; in assertIsSorted()
121 assertTrue(rank > lastDynamicRank); in assertIsSorted()
122 lastDynamicRank = rank; in assertIsSorted()
138 private ShortcutInfo createInfo(boolean isStatic, int rank) { in createInfo() argument
140 RuntimeEnvironment.application, generateId(isStatic, rank)) in createInfo()
141 .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/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.visuallyInterruptive(); 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/apps/Car/Settings/src/com/android/car/settings/sound/
DVolumeItemParser.java68 int rank = 0; in loadAudioUsageItems() local
80 usage, rank, in loadAudioUsageItems()
83 rank++; in loadAudioUsageItems()
107 public VolumeItem(@AudioAttributes.AttributeUsage int usage, int rank, in VolumeItem() argument
110 mRank = rank; in VolumeItem()
/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
219 .setRank(rank) in buildProto()
DItemInfo.java137 public int rank = 0; field in ItemInfo
173 rank = info.rank; in copyFrom()
217 .put(LauncherSettings.Favorites.RANK, rank); in writeToValues()
228 rank = values.getAsInteger(LauncherSettings.Favorites.RANK); in readFromValues()
258 + " rank=" + rank in dumpProperties()
/packages/modules/NeuralNetworks/common/operations/
DSVDF.cpp80 const int rank = getScalarData<int>(*GetInput(operation, operands, kRankParam)); in Prepare() local
83 NN_CHECK_EQ(num_filters % rank, 0); in Prepare()
84 const uint32_t num_units = num_filters / rank; in Prepare()
167 const int rank = params_.rank_; in EvalFloat32() local
171 const int num_units = num_filters / rank; in EvalFloat32()
206 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/tools/api/
Dtypes.spec93 * Supported tensor rank: 4, with "NHWC" (i.e., Num_samples, Height, Width,
168 * Supported tensor rank: 4, with "NHWC" or "NCHW" data layout.
361 * Supported tensor rank: up to 4
511 * Supported tensor rank: up to 4
1076 * Supported tensor rank: up to 4
1106 * Supported tensor rank: up to 4.
1109 * * 0: A tensor of at least rank 2, specifying the input. If rank is
1177 * Supported value tensor rank: from 2
1229 * Supported tensor rank: up to 4
1230 * Tensors with rank less than 4 are only supported since %{NNAPILevel3}.
[all …]
/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)
/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)
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)

1234