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