str_pipeline =
g_strdup_printf
("appsrc name=appsrc caps=text/x-raw,format=utf8 ! "
- "tensor_converter ! tensor_sink name=test_sink");
+ "tensor_converter input-dim=20 ! tensor_sink name=test_sink");
break;
case TEST_TYPE_TEXT_3F:
/** text stream 3 frames */
str_pipeline =
g_strdup_printf
("appsrc name=appsrc caps=text/x-raw,format=utf8,framerate=(fraction)100/1 ! "
- "tensor_converter frames-per-tensor=3 ! tensor_sink name=test_sink");
+ "tensor_converter input-dim=30 frames-per-tensor=3 ! tensor_sink name=test_sink");
break;
case TEST_TYPE_OCTET_CUR_TS:
/** byte stream, timestamp current time */
str_pipeline =
g_strdup_printf
("appsrc name=appsrc caps=text/x-raw,format=utf8 ! "
- "tensor_converter ! tensor_transform mode=typecast option=%s ! tensor_sink name=test_sink",
+ "tensor_converter input-dim=10 ! tensor_transform mode=typecast option=%s ! tensor_sink name=test_sink",
tensor_element_typename[option.t_type]);
break;
case TEST_TYPE_ISSUE739_MUX_PARALLEL_1:
/** check received buffers */
EXPECT_EQ (g_test_data.received, num_buffers);
EXPECT_EQ (g_test_data.mem_blocks, 1);
- EXPECT_EQ (g_test_data.received_size, GST_TENSOR_STRING_SIZE);
+ EXPECT_EQ (g_test_data.received_size, 20);
/** check caps name */
EXPECT_TRUE (g_str_equal (g_test_data.caps_name, "other/tensor"));
/** check tensor config for text */
EXPECT_TRUE (gst_tensor_config_validate (&g_test_data.tensor_config));
EXPECT_EQ (g_test_data.tensor_config.info.type, _NNS_UINT8);
- EXPECT_EQ (g_test_data.tensor_config.info.dimension[0],
- GST_TENSOR_STRING_SIZE);
+ EXPECT_EQ (g_test_data.tensor_config.info.dimension[0], 20);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[1], 1);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[2], 1);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[3], 1);
/** check received buffers */
EXPECT_EQ (g_test_data.received, num_buffers / 3);
EXPECT_EQ (g_test_data.mem_blocks, 1);
- EXPECT_EQ (g_test_data.received_size, GST_TENSOR_STRING_SIZE * 3);
+ EXPECT_EQ (g_test_data.received_size, 30 * 3);
/** check caps name */
EXPECT_TRUE (g_str_equal (g_test_data.caps_name, "other/tensor"));
/** check tensor config for text */
EXPECT_TRUE (gst_tensor_config_validate (&g_test_data.tensor_config));
EXPECT_EQ (g_test_data.tensor_config.info.type, _NNS_UINT8);
- EXPECT_EQ (g_test_data.tensor_config.info.dimension[0],
- GST_TENSOR_STRING_SIZE);
+ EXPECT_EQ (g_test_data.tensor_config.info.dimension[0], 30);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[1], 3);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[2], 1);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[3], 1);
/** check received buffers */
EXPECT_EQ (g_test_data.received, num_buffers);
EXPECT_EQ (g_test_data.mem_blocks, 1);
- EXPECT_EQ (g_test_data.received_size, GST_TENSOR_STRING_SIZE * t_size);
+ EXPECT_EQ (g_test_data.received_size, 10 * t_size);
/** check caps name */
EXPECT_TRUE (g_str_equal (g_test_data.caps_name, "other/tensor"));
/** check tensor config for text */
EXPECT_TRUE (gst_tensor_config_validate (&g_test_data.tensor_config));
EXPECT_EQ (g_test_data.tensor_config.info.type, t_type);
- EXPECT_EQ (g_test_data.tensor_config.info.dimension[0],
- GST_TENSOR_STRING_SIZE);
+ EXPECT_EQ (g_test_data.tensor_config.info.dimension[0], 10);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[1], 1);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[2], 1);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[3], 1);
/** check received buffers */
EXPECT_EQ (g_test_data.received, num_buffers);
EXPECT_EQ (g_test_data.mem_blocks, 1);
- EXPECT_EQ (g_test_data.received_size, GST_TENSOR_STRING_SIZE * t_size);
+ EXPECT_EQ (g_test_data.received_size, 10 * t_size);
/** check caps name */
EXPECT_TRUE (g_str_equal (g_test_data.caps_name, "other/tensor"));
/** check tensor config for text */
EXPECT_TRUE (gst_tensor_config_validate (&g_test_data.tensor_config));
EXPECT_EQ (g_test_data.tensor_config.info.type, t_type);
- EXPECT_EQ (g_test_data.tensor_config.info.dimension[0],
- GST_TENSOR_STRING_SIZE);
+ EXPECT_EQ (g_test_data.tensor_config.info.dimension[0], 10);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[1], 1);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[2], 1);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[3], 1);
/** check received buffers */
EXPECT_EQ (g_test_data.received, num_buffers);
EXPECT_EQ (g_test_data.mem_blocks, 1);
- EXPECT_EQ (g_test_data.received_size, GST_TENSOR_STRING_SIZE * t_size);
+ EXPECT_EQ (g_test_data.received_size, 10 * t_size);
/** check caps name */
EXPECT_TRUE (g_str_equal (g_test_data.caps_name, "other/tensor"));
/** check tensor config for text */
EXPECT_TRUE (gst_tensor_config_validate (&g_test_data.tensor_config));
EXPECT_EQ (g_test_data.tensor_config.info.type, t_type);
- EXPECT_EQ (g_test_data.tensor_config.info.dimension[0],
- GST_TENSOR_STRING_SIZE);
+ EXPECT_EQ (g_test_data.tensor_config.info.dimension[0], 10);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[1], 1);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[2], 1);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[3], 1);
/** check received buffers */
EXPECT_EQ (g_test_data.received, num_buffers);
EXPECT_EQ (g_test_data.mem_blocks, 1);
- EXPECT_EQ (g_test_data.received_size, GST_TENSOR_STRING_SIZE * t_size);
+ EXPECT_EQ (g_test_data.received_size, 10 * t_size);
/** check caps name */
EXPECT_TRUE (g_str_equal (g_test_data.caps_name, "other/tensor"));
/** check tensor config for text */
EXPECT_TRUE (gst_tensor_config_validate (&g_test_data.tensor_config));
EXPECT_EQ (g_test_data.tensor_config.info.type, t_type);
- EXPECT_EQ (g_test_data.tensor_config.info.dimension[0],
- GST_TENSOR_STRING_SIZE);
+ EXPECT_EQ (g_test_data.tensor_config.info.dimension[0], 10);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[1], 1);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[2], 1);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[3], 1);
/** check received buffers */
EXPECT_EQ (g_test_data.received, num_buffers);
EXPECT_EQ (g_test_data.mem_blocks, 1);
- EXPECT_EQ (g_test_data.received_size, GST_TENSOR_STRING_SIZE * t_size);
+ EXPECT_EQ (g_test_data.received_size, 10 * t_size);
/** check caps name */
EXPECT_TRUE (g_str_equal (g_test_data.caps_name, "other/tensor"));
/** check tensor config for text */
EXPECT_TRUE (gst_tensor_config_validate (&g_test_data.tensor_config));
EXPECT_EQ (g_test_data.tensor_config.info.type, t_type);
- EXPECT_EQ (g_test_data.tensor_config.info.dimension[0],
- GST_TENSOR_STRING_SIZE);
+ EXPECT_EQ (g_test_data.tensor_config.info.dimension[0], 10);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[1], 1);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[2], 1);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[3], 1);
/** check received buffers */
EXPECT_EQ (g_test_data.received, num_buffers);
EXPECT_EQ (g_test_data.mem_blocks, 1);
- EXPECT_EQ (g_test_data.received_size, GST_TENSOR_STRING_SIZE * t_size);
+ EXPECT_EQ (g_test_data.received_size, 10 * t_size);
/** check caps name */
EXPECT_TRUE (g_str_equal (g_test_data.caps_name, "other/tensor"));
/** check tensor config for text */
EXPECT_TRUE (gst_tensor_config_validate (&g_test_data.tensor_config));
EXPECT_EQ (g_test_data.tensor_config.info.type, t_type);
- EXPECT_EQ (g_test_data.tensor_config.info.dimension[0],
- GST_TENSOR_STRING_SIZE);
+ EXPECT_EQ (g_test_data.tensor_config.info.dimension[0], 10);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[1], 1);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[2], 1);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[3], 1);
/** check received buffers */
EXPECT_EQ (g_test_data.received, num_buffers);
EXPECT_EQ (g_test_data.mem_blocks, 1);
- EXPECT_EQ (g_test_data.received_size, GST_TENSOR_STRING_SIZE * t_size);
+ EXPECT_EQ (g_test_data.received_size, 10 * t_size);
/** check caps name */
EXPECT_TRUE (g_str_equal (g_test_data.caps_name, "other/tensor"));
/** check tensor config for text */
EXPECT_TRUE (gst_tensor_config_validate (&g_test_data.tensor_config));
EXPECT_EQ (g_test_data.tensor_config.info.type, t_type);
- EXPECT_EQ (g_test_data.tensor_config.info.dimension[0],
- GST_TENSOR_STRING_SIZE);
+ EXPECT_EQ (g_test_data.tensor_config.info.dimension[0], 10);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[1], 1);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[2], 1);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[3], 1);
/** check received buffers */
EXPECT_EQ (g_test_data.received, num_buffers);
EXPECT_EQ (g_test_data.mem_blocks, 1);
- EXPECT_EQ (g_test_data.received_size, GST_TENSOR_STRING_SIZE * t_size);
+ EXPECT_EQ (g_test_data.received_size, 10 * t_size);
/** check caps name */
EXPECT_TRUE (g_str_equal (g_test_data.caps_name, "other/tensor"));
/** check tensor config for text */
EXPECT_TRUE (gst_tensor_config_validate (&g_test_data.tensor_config));
EXPECT_EQ (g_test_data.tensor_config.info.type, t_type);
- EXPECT_EQ (g_test_data.tensor_config.info.dimension[0],
- GST_TENSOR_STRING_SIZE);
+ EXPECT_EQ (g_test_data.tensor_config.info.dimension[0], 10);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[1], 1);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[2], 1);
EXPECT_EQ (g_test_data.tensor_config.info.dimension[3], 1);