Home
last modified time | relevance | path

Searched refs:elem_cnt (Results 1 – 4 of 4) sorted by relevance

/third_party/mindspore/mindspore/lite/tools/common/
Dgraph_util.h170 auto elem_cnt = quant_data.size(); in SparsityCompress() local
173 auto elem_perchannel = elem_cnt / channel_cnt; in SparsityCompress()
199 for (size_t di = 0; di < elem_cnt; di++) { in SparsityCompress()
236 size_t CalCoorBestBit(const std::vector<T> &quant_data, size_t elem_cnt, in CalCoorBestBit() argument
246 auto elem_perchannel = elem_cnt / channel_cnt; in CalCoorBestBit()
247 for (size_t i = 0; i < elem_cnt; i++) { in CalCoorBestBit()
270 auto elem_cnt = quant_data.size(); in PackRepetition() local
273 if (elem_cnt != elem_cnt_by_dims) { in PackRepetition()
274 … MS_LOG(ERROR) << "elem_cnt: " << elem_cnt << " not equal elem_cnt_by_dims: " << elem_cnt_by_dims; in PackRepetition()
292 …o pack_repetition_size_in_bit = bit_num + bit_num * unique_value_cnt + unique_value_bit * elem_cnt; in PackRepetition()
[all …]
/third_party/mindspore/mindspore/lite/src/
Dweight_decoder.cc67 auto elem_cnt = dst_tensor->ElementsNum(); in IndexingDecompress() local
69 for (int i = 0; i < elem_cnt; i++) { in IndexingDecompress()
144 auto elem_cnt = dst_tensor->ElementsNum(); in SparseDecompress() local
179 elem_cnt, coor_best_bit, dst_data, dst_tensor->Size()); in SparseDecompress()
182 elem_cnt, coor_best_bit, dst_data, dst_tensor->Size()); in SparseDecompress()
Dweight_decoder.h70 … size_t elem_cnt, size_t coor_best_bit, void *dst_data, size_t dst_data_size) { in UnSparseTensorData() argument
77 auto elem_perchannel = elem_cnt / channel_cnt; in UnSparseTensorData()
/third_party/skia/third_party/externals/spirv-cross/
Dspirv_msl.cpp2292 uint32_t elem_cnt = 0; in add_composite_variable_to_interface_block() local
2302 elem_cnt = var_type.columns; in add_composite_variable_to_interface_block()
2309 elem_cnt = to_array_size_literal(var_type); in add_composite_variable_to_interface_block()
2357 for (uint32_t i = 0; i < elem_cnt; i++) in add_composite_variable_to_interface_block()
2512 uint32_t elem_cnt = 0; in add_composite_member_variable_to_interface_block() local
2519 elem_cnt = mbr_type.columns; in add_composite_member_variable_to_interface_block()
2526 elem_cnt = to_array_size_literal(mbr_type); in add_composite_member_variable_to_interface_block()
2556 for (uint32_t i = 0; i < elem_cnt; i++) in add_composite_member_variable_to_interface_block()
15724 uint32_t elem_cnt = type.array.empty() ? 1 : to_array_size_literal(type); in analyze_argument_buffers() local
15725 if (elem_cnt == 0) in analyze_argument_buffers()
[all …]