Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

Fix typos in multiple files (#29802)

co63oc55efa68cb254
diff --git a/src/common/transformations/include/transformations/op_conversions/convert_reduce_to_pooling.hpp b/src/common/transformations/include/transformations/op_conversions/convert_reduce_to_pooling.hpp
index 212468459f7..e5d5d68855f 100644
--- a/src/common/transformations/include/transformations/op_conversions/convert_reduce_to_pooling.hpp
+++ b/src/common/transformations/include/transformations/op_conversions/convert_reduce_to_pooling.hpp
@@ -163,7 +163,7 @@ ov::matcher_pass_callback ConvertReduceBase::convert_reduce_to_pooling() {
dims_end *= input_shape[i];
}
}
- // The batch dimenstion is repositioned in the shape
+ // The batch dimension is repositioned in the shape
// only in case of batch dimension reduction
shape_begin.assign({dims_begin, 1, dims_prod, dims_end});
shape_end = reduce->output(0).get_shape();
diff --git a/src/common/transformations/src/transformations/common_optimizations/nop_elimination.cpp b/src/common/transformations/src/transformations/common_optimizations/nop_elimination.cpp
index 7ed10c3f797..0b9fcb6d1c9 100644
--- a/src/common/transformations/src/transformations/common_optimizations/nop_elimination.cpp
+++ b/src/common/transformations/src/transformations/common_optimizations/nop_elimination.cpp
@@ -549,7 +549,7 @@ pass::EliminateConcatStridedSlice::EliminateConcatStridedSlice() {
}
return false;
};
- // check that we won't do change dimenstion rank
+ // check that we won't do change dimension rank
if (!check_mask(strided_slice_node->get_shrink_axis_mask()) ||
!check_mask(strided_slice_node->get_new_axis_mask()) ||
!check_mask(strided_slice_node->get_ellipsis_mask())) {
diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/utils/fused_ops_jitter.hpp b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/utils/fused_ops_jitter.hpp
index 3727e50d67b..d7b9be51da9 100644
--- a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/utils/fused_ops_jitter.hpp
+++ b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/utils/fused_ops_jitter.hpp
@@ -255,7 +255,7 @@ public:
x = idx[7];
break;
default:
- throw std::runtime_error("More than 8 dimenstions is not supported in fused op generator");
+ throw std::runtime_error("More than 8 dimensions is not supported in fused op generator");
}
const std::map<ChannelName, std::string*> channels_map{
diff --git a/src/plugins/intel_gpu/src/graph/program_node.cpp b/src/plugins/intel_gpu/src/graph/program_node.cpp
index 3cb8074302f..9ee53d2c7a5 100644
--- a/src/plugins/intel_gpu/src/graph/program_node.cpp
+++ b/src/plugins/intel_gpu/src/graph/program_node.cpp
@@ -36,7 +36,7 @@ static size_t get_shape_data_size(const layout& l) {
if (l.is_static())
return 0;
- size_t size = layout::max_rank(); // all dimenstions are stored
+ size_t size = layout::max_rank(); // all dimensions are stored
const auto& dynamic_pad = l.data_padding._dynamic_dims_mask;
for (size_t j = 0; j < layout::max_rank(); ++j) {
if (dynamic_pad[j] == 1) {
diff --git a/src/plugins/intel_gpu/src/kernel_selector/jitter.h b/src/plugins/intel_gpu/src/kernel_selector/jitter.h
index 8fa5e2a6ade..5148fbc3183 100644
--- a/src/plugins/intel_gpu/src/kernel_selector/jitter.h
+++ b/src/plugins/intel_gpu/src/kernel_selector/jitter.h
@@ -351,7 +351,7 @@ public:
case 6: b = idx[0]; f = idx[1]; w = idx[2]; z = idx[3]; y = idx[4]; x = idx[5]; break;
case 7: b = idx[0]; f = idx[1]; u = idx[2]; w = idx[3]; z = idx[4]; y = idx[5]; x = idx[6]; break;
case 8: b = idx[0]; f = idx[1]; v = idx[2]; u = idx[3]; w = idx[4]; z = idx[5]; y = idx[6]; x = idx[7]; break;
- default: throw std::runtime_error("More than 8 dimenstions is not supported in fused op generator");
+ default: throw std::runtime_error("More than 8 dimensions is not supported in fused op generator");
}
if (t.Batch().v == 1) {
diff --git a/src/plugins/intel_npu/src/compiler_adapter/src/ze_graph_ext_wrappers.cpp b/src/plugins/intel_npu/src/compiler_adapter/src/ze_graph_ext_wrappers.cpp
index b169171ec59..11dee5af138 100644
--- a/src/plugins/intel_npu/src/compiler_adapter/src/ze_graph_ext_wrappers.cpp
+++ b/src/plugins/intel_npu/src/compiler_adapter/src/ze_graph_ext_wrappers.cpp
@@ -59,7 +59,7 @@ ZeGraphExtWrappers::~ZeGraphExtWrappers() {
}
_ze_result_t ZeGraphExtWrappers::destroyGraph(ze_graph_handle_t graphHandle) {
- _logger.debug("destroyGraph - perfrom pfnDestroy");
+ _logger.debug("destroyGraph - perform pfnDestroy");
auto result = _zeroInitStruct->getGraphDdiTable().pfnDestroy(graphHandle);
if (ZE_RESULT_SUCCESS != result) {
@@ -83,7 +83,7 @@ void ZeGraphExtWrappers::getGraphBinary(ze_graph_handle_t graphHandle,
if (UseCopyForNativeBinary(_graphExtVersion)) {
// Get blob size first
- _logger.debug("getGraphBinary - perfrom pfnGetNativeBinary to get size");
+ _logger.debug("getGraphBinary - perform pfnGetNativeBinary to get size");
auto result = _zeroInitStruct->getGraphDdiTable().pfnGetNativeBinary(graphHandle, &blobSize, nullptr);
blob.resize(blobSize);
THROW_ON_FAIL_FOR_LEVELZERO_EXT("pfnGetNativeBinary get blob size, Failed to compile network.",
@@ -91,7 +91,7 @@ void ZeGraphExtWrappers::getGraphBinary(ze_graph_handle_t graphHandle,
_zeroInitStruct->getGraphDdiTable());
// Get blob data
- _logger.debug("getGraphBinary - perfrom pfnGetNativeBinary to get data");
+ _logger.debug("getGraphBinary - perform pfnGetNativeBinary to get data");
result = _zeroInitStruct->getGraphDdiTable().pfnGetNativeBinary(graphHandle, &blobSize, blob.data());
THROW_ON_FAIL_FOR_LEVELZERO_EXT("pfnGetNativeBinary get blob data, Failed to compile network.",
result,
@@ -100,7 +100,7 @@ void ZeGraphExtWrappers::getGraphBinary(ze_graph_handle_t graphHandle,
blobPtr = blob.data();
} else {
// Get blob ptr and size
- _logger.debug("getGraphBinary - perfrom pfnGetNativeBinary2 to get size and data");
+ _logger.debug("getGraphBinary - perform pfnGetNativeBinary2 to get size and data");
auto result = _zeroInitStruct->getGraphDdiTable().pfnGetNativeBinary2(graphHandle, &blobSize, &blobPtr);
THROW_ON_FAIL_FOR_LEVELZERO_EXT("pfnGetNativeBinary get blob size, Failed to compile network.",
result,
@@ -122,11 +122,11 @@ void ZeGraphExtWrappers::initializeGraph(ze_graph_handle_t graphHandle, uint32_t
_logger.debug("Initialize graph based on graph properties for ext version larger than 1.8");
ze_graph_properties_2_t properties = {};
properties.stype = ZE_STRUCTURE_TYPE_GRAPH_PROPERTIES;
- _logger.debug("initializeGraph - perfrom pfnGetProperties2");
+ _logger.debug("initializeGraph - perform pfnGetProperties2");
_zeroInitStruct->getGraphDdiTable().pfnGetProperties2(graphHandle, &properties);
if (properties.initStageRequired & ZE_GRAPH_STAGE_INITIALIZE) {
- _logger.debug("initializeGraph - perfrom pfnGraphInitialize");
+ _logger.debug("initializeGraph - perform pfnGraphInitialize");
_zeroInitStruct->getGraphDdiTable().pfnGraphInitialize(graphHandle);
}
@@ -160,7 +160,7 @@ void ZeGraphExtWrappers::initialize_graph_through_command_list(ze_graph_handle_t
_logger.debug("initialize_graph_through_command_list - hostSynchronize completed");
}
-// Parse the result string of query from foramt <name_0><name_1><name_2> to unordered_set of string
+// Parse the result string of query from format <name_0><name_1><name_2> to unordered_set of string
static std::unordered_set<std::string> parseQueryResult(std::vector<char>& data) {
std::string dataString(data.begin(), data.end());
std::unordered_set<std::string> result;
@@ -189,7 +189,7 @@ std::unordered_set<std::string> ZeGraphExtWrappers::getQueryResultFromSupportedL
ZE_MINOR_VERSION(_graphExtVersion));
}
// Get the size of query result
- _logger.debug("getQueryResultFromSupportLayers - perfrom pfnQueryNetworkGetSupportedLayers to get size");
+ _logger.debug("getQueryResultFromSupportLayers - perform pfnQueryNetworkGetSupportedLayers to get size");
size_t size = 0;
result = _zeroInitStruct->getGraphDdiTable().pfnQueryNetworkGetSupportedLayers(hGraphQueryNetwork, &size, nullptr);
THROW_ON_FAIL_FOR_LEVELZERO_EXT("pfnQueryNetworkGetSupportedLayers get size of query result",
@@ -197,7 +197,7 @@ std::unordered_set<std::string> ZeGraphExtWrappers::getQueryResultFromSupportedL
_zeroInitStruct->getGraphDdiTable());
// Get the result data of query
- _logger.debug("getQueryResultFromSupportLayers - perfrom pfnQueryNetworkGetSupportedLayers to get data");
+ _logger.debug("getQueryResultFromSupportLayers - perform pfnQueryNetworkGetSupportedLayers to get data");
std::vector<char> supportedLayers(size);
result = _zeroInitStruct->getGraphDdiTable().pfnQueryNetworkGetSupportedLayers(hGraphQueryNetwork,
&size,
@@ -206,7 +206,7 @@ std::unordered_set<std::string> ZeGraphExtWrappers::getQueryResultFromSupportedL
result,
_zeroInitStruct->getGraphDdiTable());
- _logger.debug("getQueryResultFromSupportLayers - perfrom pfnQueryNetworkDestroy");
+ _logger.debug("getQueryResultFromSupportLayers - perform pfnQueryNetworkDestroy");
result = _zeroInitStruct->getGraphDdiTable().pfnQueryNetworkDestroy(hGraphQueryNetwork);
THROW_ON_FAIL_FOR_LEVELZERO_EXT("pfnQueryNetworkDestroy", result, _zeroInitStruct->getGraphDdiTable());
@@ -408,7 +408,7 @@ void ZeGraphExtWrappers::getMetadata(ze_graph_handle_t graphHandle,
std::vector<IODescriptor>& outputs) const {
if (NotSupportArgumentMetadata(_graphExtVersion)) {
ze_graph_argument_properties_3_t arg;
- _logger.debug("getMetadata - perfrom pfnGetArgumentProperties3");
+ _logger.debug("getMetadata - perform pfnGetArgumentProperties3");
auto result = _zeroInitStruct->getGraphDdiTable().pfnGetArgumentProperties3(graphHandle, index, &arg);
THROW_ON_FAIL_FOR_LEVELZERO_EXT("pfnGetArgumentProperties3", result, _zeroInitStruct->getGraphDdiTable());
@@ -426,14 +426,14 @@ void ZeGraphExtWrappers::getMetadata(ze_graph_handle_t graphHandle,
}
} else {
ze_graph_argument_properties_3_t arg;
- _logger.debug("getMetadata - perfrom pfnGetArgumentProperties3");
+ _logger.debug("getMetadata - perform pfnGetArgumentProperties3");
auto result = _zeroInitStruct->getGraphDdiTable().pfnGetArgumentProperties3(graphHandle, index, &arg);
THROW_ON_FAIL_FOR_LEVELZERO_EXT("pfnGetArgumentProperties3", result, _zeroInitStruct->getGraphDdiTable());
std::optional<ze_graph_argument_metadata_t> optionalMetadata = std::nullopt;
if (!isStateInputName(arg.name) && !isStateOutputName(arg.name) && !isShapeTensorName(arg.name)) {
- _logger.debug("getMetadata - perfrom pfnGetArgumentMetadata");
+ _logger.debug("getMetadata - perform pfnGetArgumentMetadata");
ze_graph_argument_metadata_t metadata;
result = _zeroInitStruct->getGraphDdiTable().pfnGraphGetArgumentMetadata(graphHandle, index, &metadata);
THROW_ON_FAIL_FOR_LEVELZERO_EXT("pfnGraphGetArgumentMetadata", result, _zeroInitStruct->getGraphDdiTable());
@@ -459,7 +459,7 @@ void ZeGraphExtWrappers::getMetadata(ze_graph_handle_t graphHandle,
NetworkMetadata ZeGraphExtWrappers::getNetworkMeta(ze_graph_handle_t graphHandle) const {
ze_graph_properties_t graphProperties{};
- _logger.debug("getNetworkMeta - perfrom pfnGetProperties");
+ _logger.debug("getNetworkMeta - perform pfnGetProperties");
auto result = _zeroInitStruct->getGraphDdiTable().pfnGetProperties(graphHandle, &graphProperties);
THROW_ON_FAIL_FOR_LEVELZERO_EXT("pfnGetProperties", result, _zeroInitStruct->getGraphDdiTable());
NetworkMetadata meta;
diff --git a/src/plugins/intel_npu/src/plugin/npuw/base_sync_infer_request.hpp b/src/plugins/intel_npu/src/plugin/npuw/base_sync_infer_request.hpp
index 0f1e02cbd12..576810cc9b2 100644
--- a/src/plugins/intel_npu/src/plugin/npuw/base_sync_infer_request.hpp
+++ b/src/plugins/intel_npu/src/plugin/npuw/base_sync_infer_request.hpp
@@ -27,7 +27,7 @@ class CompiledModel;
using LinkFrom = std::pair<std::size_t /* Subrequest index */
,
std::size_t /* Subrequest output index */
- >; // FIXME: This is a third, if not fourth, definitiion of such structure
+ >; // FIXME: This is a third, if not fourth, definition of such structure
// This interface is provided to npuw::AsyncInferRequest to manage the
// individual subrequests' execution
diff --git a/src/plugins/intel_npu/src/plugin/npuw/util_xarch.cpp b/src/plugins/intel_npu/src/plugin/npuw/util_xarch.cpp
index 749837e6db0..4aa59edaceb 100644
--- a/src/plugins/intel_npu/src/plugin/npuw/util_xarch.cpp
+++ b/src/plugins/intel_npu/src/plugin/npuw/util_xarch.cpp
@@ -314,7 +314,7 @@ void ov::npuw::util::XARCH::unpack_i4i8(const ov::SoPtr<ov::ITensor>& from,
}
UNPACK_SAVE_TICK();
#else
- OPENVINO_THROW("AVX2 support is neccessary but it's not enabled!");
+ OPENVINO_THROW("AVX2 support is necessary but it's not enabled!");
#endif
}
@@ -454,7 +454,7 @@ void ov::npuw::util::XARCH::unpack_i4f16(const ov::SoPtr<ov::ITensor>& from,
}
}
#else
- OPENVINO_THROW("AVX2 support is neccessary but it's not enabled!");
+ OPENVINO_THROW("AVX2 support is necessary but it's not enabled!");
#endif
}
@@ -611,7 +611,7 @@ void ov::npuw::util::XARCH::unpack_i4f16_scale(const ov::SoPtr<ov::ITensor>& fro
}
}
#else
- OPENVINO_THROW("AVX2 support is neccessary but it's not enabled!");
+ OPENVINO_THROW("AVX2 support is necessary but it's not enabled!");
#endif
}
@@ -724,7 +724,7 @@ void ov::npuw::util::XARCH::unpack_i4f16_z(const ov::SoPtr<ov::ITensor>& from,
}
}
#else
- OPENVINO_THROW("AVX2 support is neccessary but it's not enabled!");
+ OPENVINO_THROW("AVX2 support is necessary but it's not enabled!");
#endif
}
@@ -788,7 +788,7 @@ void ov::npuw::util::XARCH::unpack_u4f16(const ov::SoPtr<ov::ITensor>& from,
pDst += 64; // note pDst is int16_t
}
#else
- OPENVINO_THROW("AVX2 support is neccessary but it's not enabled!");
+ OPENVINO_THROW("AVX2 support is necessary but it's not enabled!");
#endif
}
@@ -969,7 +969,7 @@ void ov::npuw::util::XARCH::unpack_u4f16_scale_zp(const ov::SoPtr<ov::ITensor>&
}
}
#else
- OPENVINO_THROW("AVX2 support is neccessary but it's not enabled!");
+ OPENVINO_THROW("AVX2 support is necessary but it's not enabled!");
#endif
}
@@ -1153,7 +1153,7 @@ void ov::npuw::util::XARCH::unpack_u4f16_asymm_zp(const ov::SoPtr<ov::ITensor>&
}
}
#else
- OPENVINO_THROW("AVX2 support is neccessary but it's not enabled!");
+ OPENVINO_THROW("AVX2 support is necessary but it's not enabled!");
#endif
}
@@ -1254,7 +1254,7 @@ void ov::npuw::util::XARCH::unpack_u4f16_z(const ov::SoPtr<ov::ITensor>& from,
}
}
#else
- OPENVINO_THROW("AVX2 support is neccessary but it's not enabled!");
+ OPENVINO_THROW("AVX2 support is necessary but it's not enabled!");
#endif
}
@@ -1302,7 +1302,7 @@ void ov::npuw::util::XARCH::unpack_i8f16(const ov::SoPtr<ov::ITensor>& from,
pDst += 8;
}
#else
- OPENVINO_THROW("AVX2 support is neccessary but it's not enabled!");
+ OPENVINO_THROW("AVX2 support is necessary but it's not enabled!");
#endif
}
@@ -1344,7 +1344,7 @@ void ov::npuw::util::XARCH::unpack_i8f16_scale(const ov::SoPtr<ov::ITensor>& fro
pScl += scale_elem_type.size();
} // sindex
#else
- OPENVINO_THROW("AVX2 support is neccessary but it's not enabled!");
+ OPENVINO_THROW("AVX2 support is necessary but it's not enabled!");
#endif
}
@@ -1398,7 +1398,7 @@ void ov::npuw::util::XARCH::unpack_u8f16(const ov::SoPtr<ov::ITensor>& from,
pZrp++;
} // sindex
#else
- OPENVINO_THROW("AVX2 support is neccessary but it's not enabled!");
+ OPENVINO_THROW("AVX2 support is necessary but it's not enabled!");
#endif
}
@@ -1423,7 +1423,7 @@ ov::Tensor ov::npuw::util::XARCH::to_f16(const ov::Tensor& t) {
pdst += (8 * 2); // offset in bytes
}
#else
- OPENVINO_THROW("AVX2 support is neccessary but it's not enabled!");
+ OPENVINO_THROW("AVX2 support is necessary but it's not enabled!");
#endif
return tnew;
}
diff --git a/src/plugins/intel_npu/src/plugin/src/plugin.cpp b/src/plugins/intel_npu/src/plugin/src/plugin.cpp
index a984ce25d7f..e909a82b984 100644
--- a/src/plugins/intel_npu/src/plugin/src/plugin.cpp
+++ b/src/plugins/intel_npu/src/plugin/src/plugin.cpp
@@ -38,7 +38,7 @@ const char* NPU_PLUGIN_LIB_NAME = "openvino_intel_npu_plugin";
/**
* @brief Creates an "ov::Model" object which contains only the given "parameter" and "result" nodes.
* @details Using an "ov::Model" object to create the "CompiledModel" is the preferred way of using the OV API.
- * This path allows making use of the already written funtions/attributes for handling the I/O infromation.
+ * This path allows making use of the already written functions/attributes for handling the I/O information.
*
* Note that a stored compiled model does not hold the original IR model within it. The only related information
* which may be extracted is the original model's "parameter"/"result" nodes. Thus, we need to build a dummy model
diff --git a/src/plugins/intel_npu/tools/single-image-test/main.cpp b/src/plugins/intel_npu/tools/single-image-test/main.cpp
index fc044c4c111..d969de805e5 100644
--- a/src/plugins/intel_npu/tools/single-image-test/main.cpp
+++ b/src/plugins/intel_npu/tools/single-image-test/main.cpp
@@ -790,7 +790,7 @@ void loadBinary(const std::string& filePath, const BatchIndexer &fileSourceInBat
<< " while converting precision from " << dataPrecision << " to " << modelPrecision
<< ". Check whether it is possible to fit it into batch loading " << std::endl;
OPENVINO_ASSERT(ov::layout::has_batch(layout),
- "Input layout has no batch dimenstion: ", layout.to_string());
+ "Input layout has no batch dimension: ", layout.to_string());
size_t N = shape[ov::layout::batch_idx(layout)];
OPENVINO_ASSERT(fileBytes * N == inputTensor.get_byte_size(), "File contains ", fileBytes, " bytes, but ",
inputTensor.get_byte_size() * N, " total in batch size ", N,
@@ -826,7 +826,7 @@ void loadBinary(const std::string& filePath, const BatchIndexer &fileSourceInBat
<< " when datatypes match. "
<< "Check whether it is possible to fit it into batch loading " << std::endl;
OPENVINO_ASSERT(ov::layout::has_batch(layout),
- "Input layout has no batch dimenstion: ", layout.to_string());
+ "Input layout has no batch dimension: ", layout.to_string());
size_t N = shape[ov::layout::batch_idx(layout)];
OPENVINO_ASSERT(fileBytes * N == reqTensorBytes, "File contains ", fileBytes, " bytes, but ",
reqTensorBytes, " in batch size ", N, " expected");