guint i, count = 0U;
int status;
- status = ml_tensors_data_create (info, &copied_data);
+ status = ml_tensors_info_get_count (info, &count);
if (ML_ERROR_NONE != status) {
_ml_error_report_continue
- ("Failed to create a new tensors data for query_client.");
+ ("Failed to get count of tensors info from tensor_sink.");
return;
}
- _copied_data_s = (ml_tensors_data_s *) copied_data;
- status = ml_tensors_info_get_count (info, &count);
+ status = ml_tensors_data_create (info, &copied_data);
if (ML_ERROR_NONE != status) {
_ml_error_report_continue
- ("Failed to get count of tensors info from tensor_sink.");
+ ("Failed to create a new tensors data for query_client.");
return;
}
+ _copied_data_s = (ml_tensors_data_s *) copied_data;
for (i = 0; i < count; ++i) {
memcpy (_copied_data_s->tensors[i].tensor, data_s->tensors[i].tensor,