Skip to content

Commit

Permalink
Update src/plugins/intel_npu/src/plugin/src/compiled_model.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
DanLiu2Intel and github-actions[bot] authored Jul 17, 2024
1 parent 51f9693 commit e68a041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/intel_npu/src/plugin/src/compiled_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ std::shared_ptr<ov::ISyncInferRequest> CompiledModel::create_sync_infer_request(
void CompiledModel::export_model(std::ostream& stream) const {
const auto& blob = _networkPtr->compiledNetwork;
stream.write(reinterpret_cast<const char*>(blob.data()), blob.size());
if(!stream){
if (!stream) {
_logger.error("Write blob to stream failed. Blob is broken!");
} else {
_logger.info("Write blob to stream successfully.");
Expand Down

0 comments on commit e68a041

Please sign in to comment.