/* File Comparison to check the integrity */
EXPECT_EQ (file_cmp (file1, file2), 0);
+
+ g_free (fullpath);
+ g_free (file1);
+ g_free (file2);
}
/**
g_free (content);
ml_tensors_info_destroy (info);
ml_tensors_data_destroy (data1);
+
+ for (i = 0; i < 10; i++) {
+ g_free (uintarray1[i]);
+ g_free (uintarray2[i]);
+ }
+
+ g_free (fullpath);
+ g_free (file1);
}
/**
ml_tensors_info_create (&in_info);
ml_tensors_info_create (&out_info);
- ml_tensors_info_create (&in_res);
- ml_tensors_info_create (&out_res);
in_dim[0] = 3;
in_dim[1] = 224;
ml_tensors_info_create (&in_info);
ml_tensors_info_create (&out_info);
- ml_tensors_info_create (&in_res);
- ml_tensors_info_create (&out_res);
in_dim[0] = 1;
in_dim[1] = 16022;
ml_tensors_info_create (&in_info);
ml_tensors_info_create (&out_info);
- ml_tensors_info_create (&in_res);
- ml_tensors_info_create (&out_res);
tensor_size = 5;
status == ML_ERROR_NONE);
if (status == ML_ERROR_NONE) {
/* input tensor in filter */
+ ml_tensors_info_destroy (in_res);
status = ml_single_get_input_info (single, &in_res);
EXPECT_EQ (status, ML_ERROR_NONE);
ml_tensors_info_create (&in_info);
ml_tensors_info_create (&out_info);
- ml_tensors_info_create (&in_res);
- ml_tensors_info_create (&out_res);
in_dim[0] = 1;
in_dim[1] = 1;
ml_tensors_info_create (&in_info);
ml_tensors_info_create (&out_info);
- ml_tensors_info_create (&in_res);
- ml_tensors_info_create (&out_res);
in_dim[0] = 28;
in_dim[1] = 28;
ml_tensors_info_create (&in_info);
ml_tensors_info_create (&out_info);
- ml_tensors_info_create (&in_res);
- ml_tensors_info_create (&out_res);
in_dim[0] = 1;
in_dim[1] = 1;
ml_tensors_info_create (&in_info);
ml_tensors_info_create (&out_info);
- ml_tensors_info_create (&in_res);
- ml_tensors_info_create (&out_res);
tensor_size = 5;
in_dim[0] = tensor_size;
status == ML_ERROR_NONE);
if (status == ML_ERROR_NONE) {
/* input tensor in filter */
+ ml_tensors_info_destroy (in_res);
status = ml_single_get_input_info (single, &in_res);
EXPECT_EQ (status, ML_ERROR_NONE);
ml_tensors_data_destroy (input);
ml_tensors_info_destroy (in_info);
ml_tensors_info_destroy (out_info);
-}
+ }
+
status = ml_single_get_input_info (single, &in_info);
EXPECT_EQ (status, ML_ERROR_NONE);