Home
last modified time | relevance | path

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

/third_party/mindspore/mindspore/lite/src/
Dweight_decoder.h71 std::vector<T> un_sparsed_data; in UnSparseTensorData() local
95 un_sparsed_data.push_back(zp); in UnSparseTensorData()
98 un_sparsed_data.push_back(static_cast<T>(unique_values[index])); in UnSparseTensorData()
101 if (un_sparsed_data.size() * sizeof(T) > dst_data_size) { in UnSparseTensorData()
102 MS_LOG(ERROR) << "un-sparsed data size: " << un_sparsed_data.size() * sizeof(T) in UnSparseTensorData()
105 } else if (un_sparsed_data.size() * sizeof(T) < dst_data_size && in UnSparseTensorData()
106 (un_sparsed_data.size() + (1 << coor_best_bit) - 1) * sizeof(T) < dst_data_size) { in UnSparseTensorData()
107 …MS_LOG(ERROR) << "un-sparsed data size: " << un_sparsed_data.size() * sizeof(T) << " tensor size: … in UnSparseTensorData()
115 un_sparsed_data.push_back(static_cast<T>(zp)); in UnSparseTensorData()
118 memcpy(dst_data, un_sparsed_data.data(), un_sparsed_data.size() * sizeof(T)); in UnSparseTensorData()