MCPcopy Create free account
hub / github.com/Tencent/TNN / SetQuantizeMethod

Method SetQuantizeMethod

tools/quantization/scale_calculator.cc:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86int ScaleCalculator::SetQuantizeMethod(CalibrationMethod method) {
87 if (method != MIN_MAX && method != KL_DIVERGENCE) {
88 LOGE("invalid method (%d) for blob quantization!\n", method);
89 return -1;
90 }
91
92 cali_method_ = method;
93 return 0;
94}
95
96void ScaleCalculator::SetMergeChannel(bool merge) {
97 merge_channel_ = merge;

Callers 1

InitFeatureMapMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected