[C-Api] Revert fill dim (default 1) commit accepted/tizen/unified/20230413.123715
authorSangjung Woo <sangjung.woo@samsung.com>
Thu, 13 Apr 2023 00:15:22 +0000 (09:15 +0900)
committerSangjung Woo <again4you@gmail.com>
Thu, 13 Apr 2023 02:15:03 +0000 (11:15 +0900)
Because of native TC failure, this patch reverts the fill dim (default
1) commit.

Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
c/src/ml-api-common.c

index b09e750..c78f96c 100644 (file)
@@ -551,10 +551,6 @@ ml_tensors_info_get_tensor_dimension (ml_tensors_info_h info,
     dimension[i] = tensors_info->info[index].dimension[i];
   }
 
-  /* Fill remained dim (default value 1) */
-  for (i = valid_rank; i < ML_TENSOR_RANK_LIMIT; i++)
-    dimension[i] = 1;
-
   G_UNLOCK_UNLESS_NOLOCK (*tensors_info);
   return ML_ERROR_NONE;
 }