Skip to content

Commit

Permalink
[Split] init dim as 0
Browse files Browse the repository at this point in the history
The initial value of tensor dimension is 0. Do not fill remained dims as 1.

Signed-off-by: Jaeyun Jung <[email protected]>
  • Loading branch information
jaeyun-jung authored and myungjoo committed Sep 1, 2023
1 parent 87cfc5c commit 50bb914
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions gst/nnstreamer/elements/gsttensor_split.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,6 @@ gst_tensor_split_set_property (GObject * object, guint prop_id,
for (k = 0; k < num; k++) {
(*d)[k] = g_ascii_strtod (p[k], NULL);
}
for (k = num; k < NNS_TENSOR_RANK_LIMIT; k++)
(*d)[k] = 1;

g_array_append_val (split->tensorseg, d);
g_strfreev (p);
Expand Down

0 comments on commit 50bb914

Please sign in to comment.