Home
last modified time | relevance | path

Searched refs:weight_int8scale_table (Results 1 – 7 of 7) sorted by relevance

/dports/graphics/vapoursynth-waifu2x-ncnn-vulkan/vapoursynth-waifu2x-ncnn-vulkan-r4/deps/ncnn/tools/quantize/
H A Dncnn2int8.cpp48 …string, ncnn::Mat>& blob_int8scale_table, std::map<std::string, ncnn::Mat>& weight_int8scale_table) in read_int8scale_table() argument
51 weight_int8scale_table.clear(); in read_int8scale_table()
104weight_int8scale_table[key_str] = ncnn::Mat((int)scales.size(), (void*)scales.data()).clone(); in read_int8scale_table()
125 std::map<std::string, ncnn::Mat> weight_int8scale_table; member in NetQuantize
157 std::map<std::string, ncnn::Mat>::iterator iter = weight_int8scale_table.find(key); in quantize_convolution()
158 if (iter == weight_int8scale_table.end()) in quantize_convolution()
215 std::map<std::string, ncnn::Mat>::iterator iter = weight_int8scale_table.find(key); in quantize_convolutiondepthwise()
216 if (iter == weight_int8scale_table.end()) in quantize_convolutiondepthwise()
277 std::map<std::string, ncnn::Mat>::iterator iter = weight_int8scale_table.find(key); in quantize_innerproduct()
278 if (iter == weight_int8scale_table.end()) in quantize_innerproduct()
[all …]
/dports/graphics/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan-20210521/src/ncnn/tools/quantize/
H A Dncnn2int8.cpp48 …string, ncnn::Mat>& blob_int8scale_table, std::map<std::string, ncnn::Mat>& weight_int8scale_table) in read_int8scale_table() argument
51 weight_int8scale_table.clear(); in read_int8scale_table()
104weight_int8scale_table[key_str] = ncnn::Mat((int)scales.size(), (void*)scales.data()).clone(); in read_int8scale_table()
125 std::map<std::string, ncnn::Mat> weight_int8scale_table; member in NetQuantize
157 std::map<std::string, ncnn::Mat>::iterator iter = weight_int8scale_table.find(key); in quantize_convolution()
158 if (iter == weight_int8scale_table.end()) in quantize_convolution()
215 std::map<std::string, ncnn::Mat>::iterator iter = weight_int8scale_table.find(key); in quantize_convolutiondepthwise()
216 if (iter == weight_int8scale_table.end()) in quantize_convolutiondepthwise()
277 std::map<std::string, ncnn::Mat>::iterator iter = weight_int8scale_table.find(key); in quantize_innerproduct()
278 if (iter == weight_int8scale_table.end()) in quantize_innerproduct()
[all …]
/dports/benchmarks/vkpeak/vkpeak-20210430/ncnn/tools/quantize/
H A Dncnn2int8.cpp48 …string, ncnn::Mat>& blob_int8scale_table, std::map<std::string, ncnn::Mat>& weight_int8scale_table) in read_int8scale_table() argument
51 weight_int8scale_table.clear(); in read_int8scale_table()
104weight_int8scale_table[key_str] = ncnn::Mat((int)scales.size(), (void*)scales.data()).clone(); in read_int8scale_table()
125 std::map<std::string, ncnn::Mat> weight_int8scale_table; member in NetQuantize
157 std::map<std::string, ncnn::Mat>::iterator iter = weight_int8scale_table.find(key); in quantize_convolution()
158 if (iter == weight_int8scale_table.end()) in quantize_convolution()
215 std::map<std::string, ncnn::Mat>::iterator iter = weight_int8scale_table.find(key); in quantize_convolutiondepthwise()
216 if (iter == weight_int8scale_table.end()) in quantize_convolutiondepthwise()
277 std::map<std::string, ncnn::Mat>::iterator iter = weight_int8scale_table.find(key); in quantize_innerproduct()
278 if (iter == weight_int8scale_table.end()) in quantize_innerproduct()
[all …]
/dports/misc/ncnn/ncnn-20211208/tools/quantize/
H A Dncnn2int8.cpp48 …string, ncnn::Mat>& blob_int8scale_table, std::map<std::string, ncnn::Mat>& weight_int8scale_table) in read_int8scale_table() argument
51 weight_int8scale_table.clear(); in read_int8scale_table()
104weight_int8scale_table[key_str] = ncnn::Mat((int)scales.size(), (void*)scales.data()).clone(); in read_int8scale_table()
125 std::map<std::string, ncnn::Mat> weight_int8scale_table; member in NetQuantize
157 std::map<std::string, ncnn::Mat>::iterator iter = weight_int8scale_table.find(key); in quantize_convolution()
158 if (iter == weight_int8scale_table.end()) in quantize_convolution()
215 std::map<std::string, ncnn::Mat>::iterator iter = weight_int8scale_table.find(key); in quantize_convolutiondepthwise()
216 if (iter == weight_int8scale_table.end()) in quantize_convolutiondepthwise()
277 std::map<std::string, ncnn::Mat>::iterator iter = weight_int8scale_table.find(key); in quantize_innerproduct()
278 if (iter == weight_int8scale_table.end()) in quantize_innerproduct()
[all …]
/dports/graphics/realsr-ncnn-vulkan/realsr-ncnn-vulkan-20210210/src/ncnn/tools/quantize/
H A Dncnn2int8.cpp86 weight_int8scale_table.clear(); in read_int8scale_table()
135 weight_int8scale_table[key_str] = scales; in read_int8scale_table()
161 std::map<std::string, std::vector<float> > weight_int8scale_table; member in NetQuantize
201 if (iter == weight_int8scale_table.end()) in quantize_convolution()
268 if (iter == weight_int8scale_table.end()) in quantize_convolutiondepthwise()
335 if (iter == weight_int8scale_table.end()) in quantize_innerproduct()
618 if (weight_int8scale_table.find(std::string(key)) != weight_int8scale_table.end()) in save()
620 weight_int8scale = weight_int8scale_table[std::string(key)]; in save()
682 if (weight_int8scale_table.find(std::string(key)) != weight_int8scale_table.end()) in save()
684 weight_int8scale = weight_int8scale_table[std::string(key)]; in save()
[all …]
/dports/benchmarks/vkpeak/vkpeak-20210430/ncnn/tools/caffe/
H A Dcaffe2ncnn.cpp120 …float> >& blob_int8scale_table, std::map<std::string, std::vector<float> >& weight_int8scale_table) in read_int8scale_table() argument
123 weight_int8scale_table.clear(); in read_int8scale_table()
160 weight_int8scale_table[keystr] = scales; in read_int8scale_table()
187 weight_int8scale_table[keystr] = scales; in read_int8scale_table()
371 std::map<std::string, std::vector<float> > weight_int8scale_table; in main() local
374 …bool s2 = read_int8scale_table(int8scale_table_path, blob_int8scale_table, weight_int8scale_table); in main()
687 if (weight_int8scale_table.find(std::string(key)) != weight_int8scale_table.end()) in main()
689 weight_int8scale = weight_int8scale_table[std::string(key)]; in main()
1036 if (weight_int8scale_table.find(std::string(key)) != weight_int8scale_table.end()) in main()
1038 weight_int8scale = weight_int8scale_table[std::string(key)]; in main()
/dports/graphics/realsr-ncnn-vulkan/realsr-ncnn-vulkan-20210210/src/ncnn/tools/caffe/
H A Dcaffe2ncnn.cpp120 …float> >& blob_int8scale_table, std::map<std::string, std::vector<float> >& weight_int8scale_table) in read_int8scale_table() argument
123 weight_int8scale_table.clear(); in read_int8scale_table()
160 weight_int8scale_table[keystr] = scales; in read_int8scale_table()
187 weight_int8scale_table[keystr] = scales; in read_int8scale_table()
371 std::map<std::string, std::vector<float> > weight_int8scale_table; in main() local
374 …bool s2 = read_int8scale_table(int8scale_table_path, blob_int8scale_table, weight_int8scale_table); in main()
687 if (weight_int8scale_table.find(std::string(key)) != weight_int8scale_table.end()) in main()
689 weight_int8scale = weight_int8scale_table[std::string(key)]; in main()
1036 if (weight_int8scale_table.find(std::string(key)) != weight_int8scale_table.end()) in main()
1038 weight_int8scale = weight_int8scale_table[std::string(key)]; in main()