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

Function CreateIDSTQuan

schema/current/CaffeOp_generated.h:1141–1177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1139};
1140
1141inline flatbuffers::Offset<IDSTQuan> CreateIDSTQuan(
1142 flatbuffers::FlatBufferBuilder &_fbb,
1143 flatbuffers::Offset<flatbuffers::Vector<int8_t>> buffer = 0,
1144 flatbuffers::Offset<flatbuffers::Vector<float>> alpha = 0,
1145 int32_t type = 0,
1146 bool useInt32 = false,
1147 float quantScale = 0.0f,
1148 float scaleIn = 0.0f,
1149 float scaleOut = 0.0f,
1150 int32_t aMaxOrBits = 0,
1151 int32_t aMin = 0,
1152 int32_t readType = 0,
1153 bool has_scaleInt = false,
1154 bool shapeInt32 = false,
1155 uint32_t weightSize = 0,
1156 flatbuffers::Offset<flatbuffers::Vector<uint32_t>> index = 0,
1157 flatbuffers::Offset<flatbuffers::Vector<uint16_t>> alphaFp16 = 0,
1158 ScaleStorageType scaleStorage = ScaleStorageType_FP32) {
1159 IDSTQuanBuilder builder_(_fbb);
1160 builder_.add_alphaFp16(alphaFp16);
1161 builder_.add_index(index);
1162 builder_.add_weightSize(weightSize);
1163 builder_.add_readType(readType);
1164 builder_.add_aMin(aMin);
1165 builder_.add_aMaxOrBits(aMaxOrBits);
1166 builder_.add_scaleOut(scaleOut);
1167 builder_.add_scaleIn(scaleIn);
1168 builder_.add_quantScale(quantScale);
1169 builder_.add_type(type);
1170 builder_.add_alpha(alpha);
1171 builder_.add_buffer(buffer);
1172 builder_.add_scaleStorage(scaleStorage);
1173 builder_.add_shapeInt32(shapeInt32);
1174 builder_.add_has_scaleInt(has_scaleInt);
1175 builder_.add_useInt32(useInt32);
1176 return builder_.Finish();
1177}
1178
1179flatbuffers::Offset<IDSTQuan> CreateIDSTQuan(flatbuffers::FlatBufferBuilder &_fbb, const IDSTQuanT *_o, const flatbuffers::rehasher_function_t *_rehasher = nullptr);
1180

Callers 3

PackMethod · 0.85
CreateConvolution2DFunction · 0.85
CreateInnerProductFunction · 0.85

Calls 15

add_alphaFp16Method · 0.80
add_readTypeMethod · 0.80
add_aMinMethod · 0.80
add_aMaxOrBitsMethod · 0.80
add_scaleOutMethod · 0.80
add_scaleInMethod · 0.80
add_scaleStorageMethod · 0.80
add_shapeInt32Method · 0.80
add_has_scaleIntMethod · 0.80
add_useInt32Method · 0.80
add_indexMethod · 0.45
add_weightSizeMethod · 0.45

Tested by

no test coverage detected