Fix common misspelling: wraper -> wrapper (#5355)

This commit is contained in:
Roman Donchenko 2021-04-26 13:42:12 +03:00 committed by GitHub
parent 9045c94e3d
commit ed5313b2e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
25 changed files with 50 additions and 50 deletions

View File

@ -2,8 +2,8 @@
# SPDX-License-Identifier: Apache-2.0
#
project(OpenCV_C_Wraper)
set(TARGET_NAME opencv_c_wraper)
project(OpenCV_C_Wrapper)
set(TARGET_NAME opencv_c_wrapper)
file(GLOB SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
file(GLOB HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/*.h)

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
#include "opencv_c_wraper.h"
#include "opencv_c_wrapper.h"
#ifndef USE_OPENCV

View File

@ -15,7 +15,7 @@
#define OPENCV_C_WRAPPER(...) OPENCV_C_EXTERN __VA_ARGS__
#else
#if defined(_WIN32)
#ifdef opencv_c_wraper_EXPORTS
#ifdef opencv_c_wrapper_EXPORTS
#define OPENCV_C_WRAPPER(...) OPENCV_C_EXTERN __declspec(dllexport) __VA_ARGS__ __cdecl
#else
#define OPENCV_C_WRAPPER(...) OPENCV_C_EXTERN __declspec(dllimport) __VA_ARGS__ __cdecl

View File

@ -4,4 +4,4 @@
ie_add_sample(NAME hello_classification_c
SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/main.c"
DEPENDENCIES opencv_c_wraper)
DEPENDENCIES opencv_c_wrapper)

View File

@ -3,7 +3,7 @@
//
#include <c_api/ie_c_api.h>
#include <opencv_c_wraper.h>
#include <opencv_c_wrapper.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -6,4 +6,4 @@ ie_add_sample(NAME object_detection_sample_ssd_c
SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/main.c"
HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/object_detection_sample_ssd.h"
"${CMAKE_CURRENT_SOURCE_DIR}/c_w_dirent.h"
DEPENDENCIES opencv_c_wraper)
DEPENDENCIES opencv_c_wrapper)

View File

@ -3,7 +3,7 @@
//
#include <c_api/ie_c_api.h>
#include <opencv_c_wraper.h>
#include <opencv_c_wrapper.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -151,8 +151,8 @@ endif()
# exactly the same OpenCV_DIR path which was used for the InferenceEngine build
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/common/format_reader")
add_subdirectory(common/format_reader)
elseif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/common/opencv_c_wraper")
add_subdirectory(common/opencv_c_wraper)
elseif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/common/opencv_c_wrapper")
add_subdirectory(common/opencv_c_wrapper)
endif()
# samples build can be switched off during whole IE build

View File

@ -8,7 +8,7 @@
#include "MnistUbyte.h"
#include "bmp.h"
#include "opencv_wraper.h"
#include "opencv_wrapper.h"
using namespace FormatReader;

View File

@ -3,7 +3,7 @@
//
#ifdef USE_OPENCV
#include "opencv_wraper.h"
#include "opencv_wrapper.h"
#include <fstream>
#include <iostream>

View File

@ -4,7 +4,7 @@
/**
* \brief Image reader
* \file opencv_wraper.h
* \file opencv_wrapper.h
*/
#pragma once

View File

@ -32,10 +32,10 @@ public:
static std::string getMemoryFormats(const std::shared_ptr<ngraph::Node>& node) {
const auto &rtInfo = node->get_rt_info();
using MemoryFormatsWraper = VariantWrapper<MemoryFormatsType>;
if (!rtInfo.count(MemoryFormatsWraper::type_info.name)) return "";
const auto &attr = rtInfo.at(MemoryFormatsWraper::type_info.name);
MemoryFormatsType mem_format = as_type_ptr<MemoryFormatsWraper>(attr)->get();
using MemoryFormatsWrapper = VariantWrapper<MemoryFormatsType>;
if (!rtInfo.count(MemoryFormatsWrapper::type_info.name)) return "";
const auto &attr = rtInfo.at(MemoryFormatsWrapper::type_info.name);
MemoryFormatsType mem_format = as_type_ptr<MemoryFormatsWrapper>(attr)->get();
return mem_format.getMemoryFormats();
}

View File

@ -18,28 +18,28 @@ constexpr VariantTypeInfo VariantWrapper<Mask::Ptr>::type_info;
Mask::Ptr getMask(const Output<const Node> & output) {
auto &rtInfo = output.get_rt_info();
using MaskWraper = VariantWrapper<Mask::Ptr>;
using MaskWrapper = VariantWrapper<Mask::Ptr>;
if (!rtInfo.count(MaskWraper::type_info.name)) return nullptr;
if (!rtInfo.count(MaskWrapper::type_info.name)) return nullptr;
const auto &attr = rtInfo.at(MaskWraper::type_info.name);
return as_type_ptr<MaskWraper>(attr)->get();
const auto &attr = rtInfo.at(MaskWrapper::type_info.name);
return as_type_ptr<MaskWrapper>(attr)->get();
}
Mask::Ptr getMask(const Output<Node> & output) {
auto &rtInfo = output.get_rt_info();
using MaskWraper = VariantWrapper<Mask::Ptr>;
using MaskWrapper = VariantWrapper<Mask::Ptr>;
if (!rtInfo.count(MaskWraper::type_info.name)) return nullptr;
if (!rtInfo.count(MaskWrapper::type_info.name)) return nullptr;
const auto &attr = rtInfo.at(MaskWraper::type_info.name);
return as_type_ptr<MaskWraper>(attr)->get();
const auto &attr = rtInfo.at(MaskWrapper::type_info.name);
return as_type_ptr<MaskWrapper>(attr)->get();
}
void setMask(Output<Node> output, const Mask::Ptr & mask) {
auto &rtInfo = output.get_rt_info();
using MaskWraper = VariantWrapper<Mask::Ptr>;
rtInfo[MaskWraper::type_info.name] = MaskWraper::create(mask);
using MaskWrapper = VariantWrapper<Mask::Ptr>;
rtInfo[MaskWrapper::type_info.name] = MaskWrapper::create(mask);
}
std::ostream & operator<< (std::ostream & out, const Mask & mask) {

View File

@ -47,7 +47,7 @@ bool ngraph::pass::InitNodeInfo::run_on_function(std::shared_ptr<ngraph::Functio
rtInfo[attr->get_type_info().name] = init_attr;
}
}
// Convert manually set attributes to appropriate VariantWraper class instances
// Convert manually set attributes to appropriate VariantWrapper class instances
// all manually set attributes must belong to VariantWrapper<std::string> class
for (auto & attr : update_attributes) {
if (rtInfo.count(attr.first)) {

View File

@ -46,12 +46,12 @@ std::shared_ptr<ngraph::Variant> VariantWrapper<DequantizationAttr>::init(const
std::string getDequantization(const std::shared_ptr<ngraph::Node>& node) {
const auto& rtInfo = node->get_rt_info();
using getDequantizationWraper = VariantWrapper<DequantizationAttr>;
using getDequantizationWrapper = VariantWrapper<DequantizationAttr>;
if (!rtInfo.count(getDequantizationWraper::type_info.name)) return "";
if (!rtInfo.count(getDequantizationWrapper::type_info.name)) return "";
const auto& attr = rtInfo.at(getDequantizationWraper::type_info.name);
DequantizationAttr pp = as_type_ptr<getDequantizationWraper>(attr)->get();
const auto& attr = rtInfo.at(getDequantizationWrapper::type_info.name);
DequantizationAttr pp = as_type_ptr<getDequantizationWrapper>(attr)->get();
return pp.getDequantizationAttr();
}

View File

@ -57,23 +57,23 @@ std::shared_ptr<ngraph::Variant> VariantWrapper<FusedNames>::init(const std::sha
std::string getFusedNames(const std::shared_ptr<ngraph::Node> &node) {
const auto &rtInfo = node->get_rt_info();
using FusedNamesWraper = VariantWrapper<FusedNames>;
using FusedNamesWrapper = VariantWrapper<FusedNames>;
if (!rtInfo.count(FusedNamesWraper::type_info.name)) return {};
if (!rtInfo.count(FusedNamesWrapper::type_info.name)) return {};
const auto &attr = rtInfo.at(FusedNamesWraper::type_info.name);
FusedNames fusedNames = as_type_ptr<FusedNamesWraper>(attr)->get();
const auto &attr = rtInfo.at(FusedNamesWrapper::type_info.name);
FusedNames fusedNames = as_type_ptr<FusedNamesWrapper>(attr)->get();
return fusedNames.getNames();
}
std::vector<std::string> getFusedNamesVector(const std::shared_ptr<ngraph::Node> &node) {
const auto &rtInfo = node->get_rt_info();
using FusedNamesWraper = VariantWrapper<FusedNames>;
using FusedNamesWrapper = VariantWrapper<FusedNames>;
if (!rtInfo.count(FusedNamesWraper::type_info.name)) return {};
if (!rtInfo.count(FusedNamesWrapper::type_info.name)) return {};
const auto &attr = rtInfo.at(FusedNamesWraper::type_info.name);
FusedNames fusedNames = as_type_ptr<FusedNamesWraper>(attr)->get();
const auto &attr = rtInfo.at(FusedNamesWrapper::type_info.name);
FusedNames fusedNames = as_type_ptr<FusedNamesWrapper>(attr)->get();
return fusedNames.getVectorNames();
}

View File

@ -65,12 +65,12 @@ std::shared_ptr<ngraph::Variant> VariantWrapper<PrimitivesPriority>::init(const
std::string getPrimitivesPriority(const std::shared_ptr<ngraph::Node> &node) {
const auto &rtInfo = node->get_rt_info();
using PrimitivesPriorityWraper = VariantWrapper<PrimitivesPriority>;
using PrimitivesPriorityWrapper = VariantWrapper<PrimitivesPriority>;
if (!rtInfo.count(PrimitivesPriorityWraper::type_info.name)) return "";
if (!rtInfo.count(PrimitivesPriorityWrapper::type_info.name)) return "";
const auto &attr = rtInfo.at(PrimitivesPriorityWraper::type_info.name);
PrimitivesPriority pp = as_type_ptr<PrimitivesPriorityWraper>(attr)->get();
const auto &attr = rtInfo.at(PrimitivesPriorityWrapper::type_info.name);
PrimitivesPriority pp = as_type_ptr<PrimitivesPriorityWrapper>(attr)->get();
return pp.getPrimitivesPriority();
}

View File

@ -4,7 +4,7 @@
#include <memory>
#include "myriad_plugin.h"
#include "myriad_mvnc_wraper.h"
#include "myriad_mvnc_wrapper.h"
using namespace InferenceEngine;
using namespace vpu::MyriadPlugin;

View File

@ -12,7 +12,7 @@
#include <utility>
#include <mvnc.h>
#include "myriad_mvnc_wraper.h"
#include "myriad_mvnc_wrapper.h"
#include <ie_parameter.hpp>

View File

@ -4,7 +4,7 @@
#pragma once
#include "myriad_mvnc_wraper.h"
#include "myriad_mvnc_wrapper.h"
#include "myriad_executor.h"
#include <functional>

View File

@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
//
#include "myriad_mvnc_wraper.h"
#include "myriad_mvnc_wrapper.h"
#include <ie_common.h>

View File

@ -6,7 +6,7 @@
#include "description_buffer.hpp"
#include "myriad_executable_network.h"
#include "myriad_mvnc_wraper.h"
#include "myriad_mvnc_wrapper.h"
#include "myriad_metrics.h"
#include <memory>
#include <string>

View File

@ -6,7 +6,7 @@
#include <gtest/gtest.h>
#include "gmock/gmock.h"
#include "myriad_mvnc_wraper.h"
#include "myriad_mvnc_wrapper.h"
using namespace vpu::MyriadPlugin;