MCPcopy Create free account
hub / github.com/alibaba/MNN / InsertSimpleSet

Function InsertSimpleSet

source/core/ConvolutionCommon.cpp:124–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124static void InsertSimpleSet(PSIMPLE_SET set, int8_t value) {
125 if (set->CurUniCnt >= set->UniSetSize)
126 return;
127 for (uint32_t i = 0; i < set->CurUniCnt; i++) {
128 if (set->UniSet[i] == value)
129 return;
130 }
131 set->UniSet[set->CurUniCnt++] = value;
132 // SimpleRank(set->UniSet, set->CurUniCnt, 1);
133}
134
135static void DestorySimpleSet(PSIMPLE_SET set) {
136 if (set->UniSet != nullptr)

Callers 1

ReadSparseQuanData_cFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected