@@ -639,7 +639,7 @@ bool validateModelBatch(const std::shared_ptr<const ov::Model>& model, Logger lo
639639            }
640640            sstream << " Please check input id: " "  by the name: " get_friendly_name ()
641641                    << " , layout: " to_string () << " , is_dynamic: " is_dynamic ();
642-             logger.info (" %s" str ());
642+             logger.info (" %s" str (). c_str () );
643643            return  false ;
644644        }
645645    }
@@ -663,8 +663,8 @@ bool validateModelBatch(const std::shared_ptr<const ov::Model>& model, Logger lo
663663        } else  {
664664            logger.info (" Only networks with outputs batched by 0th dimension are supported. Please check an output by " 
665665                        " the name: %s, layout: %s" 
666-                         output->get_friendly_name (),
667-                         layout.to_string ());
666+                         output->get_friendly_name (). c_str () ,
667+                         layout.to_string (). c_str () );
668668            return  false ;
669669        }
670670    }
@@ -684,9 +684,9 @@ bool validateModelBatch(const std::shared_ptr<const ov::Model>& model, Logger lo
684684
685685    auto  node_info_printer = [&logger](const  auto & ov_node, std::string nodeType) {
686686        logger.info (" %s: %s has shape value: %s" 
687-                     nodeType,
688-                     ov_node.get_any_name (),
689-                     ov_node.get_partial_shape ().to_string ());
687+                     nodeType. c_str () ,
688+                     ov_node.get_any_name (). c_str () ,
689+                     ov_node.get_partial_shape ().to_string (). c_str () );
690690    };
691691
692692    for  (const  auto & ov_node : batchedInputs) {
@@ -700,7 +700,6 @@ bool validateModelBatch(const std::shared_ptr<const ov::Model>& model, Logger lo
700700}
701701
702702void  deBatchModel (std::shared_ptr<ov::Model>& model, ov::Dimension newBatch) {
703-     size_t  inputIdx = 0 ;
704703    std::map<std::string, ov::PartialShape> newShapes;
705704    for  (auto && item : model->get_parameters ()) {
706705        auto  layout = item->get_layout ();
@@ -709,7 +708,6 @@ void deBatchModel(std::shared_ptr<ov::Model>& model, ov::Dimension newBatch) {
709708            partShape[ov::layout::batch_idx (layout)] = newBatch;
710709        }
711710        newShapes.emplace (item->get_friendly_name (), partShape);
712-         inputIdx++;
713711    }
714712    model->reshape (newShapes);
715713}
@@ -831,7 +829,7 @@ std::shared_ptr<ov::ICompiledModel> Plugin::compile_model(const std::shared_ptr<
831829    auto  updateBatchMode = [&](ov::intel_npu::BatchMode mode) {
832830        std::stringstream strStream;
833831        strStream << mode;
834-         _logger.info (" Setting batching mode to %s." str ());
832+         _logger.info (" Setting batching mode to %s." str (). c_str () );
835833        localConfig.update ({{ov::intel_npu::batch_mode.name (), strStream.str ()}});
836834    };
837835
0 commit comments