Searched refs:size_iter (Results 1 – 2 of 2) sorted by relevance
74 int size_iter = 0; in ChunkString() local75 while (size_iter < graph_size) { in ChunkString()77 if (graph_size - size_iter < l_chunk_size) { in ChunkString()78 chunk_size = graph_size - size_iter; in ChunkString()82 …auto err = memcpy_s(reinterpret_cast<char *>(buffer.data()), chunk_size, str.data() + size_iter, c… in ChunkString()87 if (size_iter > INT_MAX - l_chunk_size) { in ChunkString()88 …MS_EXCEPTION(ValueError) << size_iter << " + " << l_chunk_size << "would lead to integer overflow!… in ChunkString()90 size_iter += l_chunk_size; in ChunkString()
1001 ssize_t size_iter = 0; in LoadTensors() local1010 while (size_iter < tensor_size) { in LoadTensors()1014 if (tensor_size - size_iter <= g_chunk_size) { in LoadTensors()1015 chunk_size = tensor_size - size_iter; in LoadTensors()1021 tensor_item.set_tensor_content(data_ptr[result_index] + size_iter, chunk_size); in LoadTensors()1029 if (size_iter > INT_MAX - g_chunk_size) { in LoadTensors()1030 …MS_EXCEPTION(ValueError) << size_iter << " + " << g_chunk_size << " would lead to integer overflow… in LoadTensors()1032 size_iter += g_chunk_size; in LoadTensors()