dimensions and types are not deliminated by both '.' and ','.
It is to support GstCap (CapsFilter) with other/tensors string
expressions.
Note that ... ! other/tensors,types=float32,int32 !...
is not supported. We need to use . instead in such cases.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
guint i;
gchar **str_dims;
- str_dims = g_strsplit (dim_string, ",", -1);
+ str_dims = g_strsplit_set (dim_string, ",.", -1);
num_dims = g_strv_length (str_dims);
if (num_dims > NNS_TENSOR_SIZE_LIMIT) {
guint i;
gchar **str_types;
- str_types = g_strsplit (type_string, ",", -1);
+ str_types = g_strsplit_set (type_string, ",.", -1);
num_types = g_strv_length (str_types);
if (num_types > NNS_TENSOR_SIZE_LIMIT) {