Skip to content

Commit 37817a8

Browse files
committed
removed commented code; removed callback arg name
1 parent e0fef9b commit 37817a8

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

demos/common/cpp/models/src/image_model.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ std::shared_ptr<InternalModelData> ImageModel::preprocess(const InputData& input
2929

3030
if (!useAutoResize) {
3131
// /* Resize and copy data from the image to the input tensor */
32-
// ov::Tensor frameTensor = request.get_input_tensor();
33-
// matToTensor(img, frameTensor);
3432
const ov::Tensor& frameTensor = request.get_tensor(inputsNames[0]); // first input should be image
3533
const ov::Shape& tensorShape = frameTensor.get_shape();
3634
const ov::Layout layout("NHWC");

demos/common/cpp/pipelines/src/async_pipeline.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ int64_t AsyncPipeline::submitData(const InputData& inputData, const std::shared_
7777
preprocessMetrics.update(startTime);
7878

7979
request.set_callback(
80-
[this, request, frameID, internalModelData, metaData, startTime](std::exception_ptr e) mutable {
80+
[this, request, frameID, internalModelData, metaData, startTime](std::exception_ptr) mutable {
8181
{
8282
const std::lock_guard<std::mutex> lock(mtx);
8383
inferenceMetrics.update(startTime);

demos/common/cpp/pipelines/src/requests_pool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ RequestsPool::RequestsPool(ov::CompiledModel& compiledModel, unsigned int size)
2828
RequestsPool::~RequestsPool() {
2929
// Setting empty callback to free resources allocated for previously assigned lambdas
3030
for (auto& pair : requests) {
31-
pair.first.set_callback([](std::exception_ptr e) {});
31+
pair.first.set_callback([](std::exception_ptr) {});
3232
}
3333
}
3434

0 commit comments

Comments
 (0)