int _targetDeviceType;
void getOutputNames(std::vector<std::string> &names);
- void getOutpuTensor(std::string &target_name, std::vector<float> &output);
+ void getOutpuTensor(std::string &target_name, std::vector<float> &tensor);
public:
ImageClassification();
names.push_back(it->first);
}
-void ImageClassification::getOutpuTensor(string &target_name, vector<float> &output)
+void ImageClassification::getOutpuTensor(string &target_name, vector<float> &tensor)
{
LOGI("ENTER");
auto raw_buffer = static_cast<float *>(tensor_buffer->buffer);
- copy(&raw_buffer[0], &raw_buffer[tensor_buffer->size / sizeof(float)], back_inserter(output));
+ copy(&raw_buffer[0], &raw_buffer[tensor_buffer->size / sizeof(float)], back_inserter(tensor));
LOGI("LEAVE");
}
int _targetDeviceType;
void getOutputNames(std::vector<std::string> &names);
- void getOutputTensor(std::string &target_name, std::vector<float> &output);
+ void getOutputTensor(std::string &target_name, std::vector<float> &tensor);
public:
ObjectDetection();
names.push_back(it->first);
}
-void ObjectDetection::getOutputTensor(string &target_name, vector<float> &output)
+void ObjectDetection::getOutputTensor(string &target_name, vector<float> &tensor)
{
LOGI("ENTER");
auto raw_buffer = static_cast<float *>(tensor_buffer->buffer);
- copy(&raw_buffer[0], &raw_buffer[tensor_buffer->size / sizeof(float)], back_inserter(output));
+ copy(&raw_buffer[0], &raw_buffer[tensor_buffer->size / sizeof(float)], back_inserter(tensor));
LOGI("LEAVE");
}