*private_data = tf;
tf->tf_private_data = tf_core_new (filter->prop.model_file);
if (tf->tf_private_data) {
- if (tf_core_init (tf->tf_private_data, &filter->prop))
+ if (tf_core_init (tf->tf_private_data, &filter->prop)) {
+ GST_ERROR ("failed to initailize the object: tensorflow");
return -2;
+ }
return 0;
} else {
+ GST_ERROR ("failed to create the object: tensorflow");
return -1;
}
}
*private_data = tf;
tf->tflite_private_data = tflite_core_new (filter->prop.model_file);
if (tf->tflite_private_data) {
- if (tflite_core_init (tf->tflite_private_data))
+ if (tflite_core_init (tf->tflite_private_data)) {
+ GST_ERROR ("failed to initialize the object: Tensorflow-lite");
return -2;
+ }
return 0;
} else {
+ GST_ERROR ("failed to create the object: Tensorflow-lite");
return -1;
}
}
for (int i = 0; i < inputTensorMeta.num_tensors; ++i) {
if (getTensorDim (input_idx_list[i], inputTensorMeta.info[i].dimension)) {
+ GST_ERROR ("failed to get the dimension of input tensors");
return -1;
}
inputTensorMeta.info[i].type =
for (int i = 0; i < outputTensorMeta.num_tensors; ++i) {
if (getTensorDim (output_idx_list[i], outputTensorMeta.info[i].dimension)) {
+ GST_ERROR ("failed to get the dimension of output tensors");
return -1;
}
outputTensorMeta.info[i].type =