[Test] update flex-tensor caps
authorJaeyun <jy1210.jung@samsung.com>
Mon, 5 Jul 2021 10:11:24 +0000 (19:11 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Thu, 5 Aug 2021 05:02:57 +0000 (14:02 +0900)
Update caps for flexible tensor, old mime type for flex-tensor is removed.

Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
c/src/nnstreamer-capi-pipeline.c
tests/capi/unittest_capi_inference.cc

index 0175731..1b5f8d3 100644 (file)
@@ -256,7 +256,7 @@ get_tensors_info_from_caps (GstCaps * caps, ml_tensors_info_s * info,
 
     if (found) {
       ml_tensors_info_copy_from_gst (info, &config.info);
-      *is_flexible = gst_tensors_info_is_flexible (&config.info);
+      *is_flexible = gst_tensors_config_is_flexible (&config);
       break;
     }
   }
index 0fb8182..4bb18f9 100644 (file)
@@ -10667,7 +10667,7 @@ TEST (nnstreamer_capi_flex, sink_multi)
 {
   gchar pipeline[] = "appsrc name=srcx caps=application/octet-stream,framerate=(fraction)10/1 ! "
       "tensor_converter input-dim=4,2,4 input-type=int32,int32,int32 ! "
-      "other/tensors-flexible ! tensor_sink name=sinkx sync=false";
+      "other/tensors,format=flexible ! tensor_sink name=sinkx sync=false";
   guint test_data[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
   ml_pipeline_h handle;
   ml_pipeline_src_h srchandle;
@@ -10730,7 +10730,7 @@ TEST (nnstreamer_capi_flex, sink_multi)
  */
 TEST (nnstreamer_capi_flex, src_multi)
 {
-  gchar pipeline[] = "appsrc name=srcx caps=other/tensors-flexible,framerate=(fraction)10/1 ! "
+  gchar pipeline[] = "appsrc name=srcx caps=other/tensors,format=flexible,framerate=(fraction)10/1 ! "
       "tensor_converter input-dim=4,2,4 input-type=int32,int32,int32 ! "
       "tensor_sink name=sinkx sync=false";
   guint test_data[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };