File tree 4 files changed +9
-8
lines changed
src/plugins/intel_npu/src
4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,8 @@ class IGraph : public std::enable_shared_from_this<IGraph> {
63
63
64
64
const std::optional<std::size_t > get_batch_size () const ;
65
65
66
+ size_t get_blob_size () const ;
67
+
66
68
std::vector<uint8_t > _blob;
67
69
68
70
protected:
Original file line number Diff line number Diff line change @@ -157,4 +157,8 @@ const std::optional<std::size_t> IGraph::get_batch_size() const {
157
157
return _batch_size;
158
158
}
159
159
160
+ size_t IGraph::get_blob_size () const {
161
+ return _blobPtr->size ();
162
+ }
163
+
160
164
} // namespace intel_npu
Original file line number Diff line number Diff line change @@ -412,13 +412,6 @@ std::vector<std::shared_ptr<IGraph>> DriverCompilerAdapter::compileWS(const std:
412
412
413
413
const ze_graph_compiler_version_info_t & compilerVersion = _compilerProperties.compilerVersion ;
414
414
415
- if ((compilerVersion.major < 6 ) || (compilerVersion.major == 6 && compilerVersion.minor < 3 )) {
416
- OPENVINO_THROW (" Minimum compiler version required for weights separation: 6.3. Found: " ,
417
- compilerVersion.major ,
418
- " ." ,
419
- compilerVersion.minor );
420
- }
421
-
422
415
const auto maxOpsetVersion = _compilerProperties.maxOVOpsetVersionSupported ;
423
416
_logger.info (" getSupportedOpsetVersion Max supported version of opset in CiD: %d" , maxOpsetVersion);
424
417
Original file line number Diff line number Diff line change @@ -130,7 +130,9 @@ void CompiledModel::export_model(std::ostream& stream) const {
130
130
}
131
131
132
132
size_t blobSizeBeforeVersioning = _graph->export_blob (stream);
133
- auto meta = Metadata<CURRENT_METADATA_VERSION>(blobSizeBeforeVersioning, CURRENT_OPENVINO_VERSION);
133
+ auto meta = Metadata<CURRENT_METADATA_VERSION>(blobSizeBeforeVersioning,
134
+ CURRENT_OPENVINO_VERSION,
135
+ {_initGraph->get_blob_size ()});
134
136
meta.write (stream);
135
137
}
136
138
You can’t perform that action at this time.
0 commit comments