File tree 3 files changed +11
-10
lines changed
src/plugins/intel_npu/src
3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -78,13 +78,14 @@ class ICompiler : public std::enable_shared_from_this<ICompiler> {
78
78
* Allocate W1 -> Init1
79
79
* Allocate W2 -> Init2
80
80
* Allocate W3 -> Init2
81
- *
81
+ *
82
82
* This is why there is an additional parameter callNumber:
83
83
* Compiler should somehow understand wich Init(or Main) to return
84
84
* Plugin does not know total numbers og Init schedules
85
85
*/
86
86
virtual std::shared_ptr<NetworkDescription> compileWS_v3 (const std::shared_ptr<ov::Model>& model,
87
- const Config& config, size_t callNumber) const = 0;
87
+ const Config& config,
88
+ size_t callNumber) const = 0;
88
89
89
90
/* *
90
91
* @brief Returns information about supported layers of the network passed
Original file line number Diff line number Diff line change @@ -90,10 +90,10 @@ void DriverGraph::custom_export(std::ostream& stream,
90
90
manager.run_passes (initModel);
91
91
92
92
xmlContent.seekg (0 , std::ios::end);
93
- uint32_t xmlSize = xmlContent.tellp ();
93
+ uint32_t xmlSize = static_cast < uint32_t >( xmlContent.tellp () );
94
94
xmlContent.seekg (0 , std::ios::beg);
95
95
binContent.seekg (0 , std::ios::end);
96
- uint32_t binSize = binContent.tellp ();
96
+ uint32_t binSize = static_cast < uint32_t >( binContent.tellp () );
97
97
binContent.seekg (0 , std::ios::beg);
98
98
99
99
stream << xmlSize;
@@ -102,10 +102,10 @@ void DriverGraph::custom_export(std::ostream& stream,
102
102
stream << binSize;
103
103
stream << binContent.rdbuf ();
104
104
105
- stream << mainBlobSize;
105
+ stream << static_cast < uint32_t >( mainBlobSize) ;
106
106
stream.write (reinterpret_cast <const char *>(mainBlobPtr), mainBlobSize);
107
107
108
- stream << initBlobSize;
108
+ stream << static_cast < uint32_t >( initBlobSize) ;
109
109
stream.write (reinterpret_cast <const char *>(initBlobPtr), initBlobSize);
110
110
111
111
if (!stream) {
Original file line number Diff line number Diff line change @@ -43,10 +43,10 @@ void PluginGraph::custom_export(std::ostream& stream,
43
43
manager.run_passes (initModel);
44
44
45
45
xmlContent.seekg (0 , std::ios::end);
46
- uint32_t xmlSize = xmlContent.tellp ();
46
+ uint32_t xmlSize = static_cast < uint32_t >( xmlContent.tellp () );
47
47
xmlContent.seekg (0 , std::ios::beg);
48
48
binContent.seekg (0 , std::ios::end);
49
- uint32_t binSize = binContent.tellp ();
49
+ uint32_t binSize = static_cast < uint32_t >( binContent.tellp () );
50
50
binContent.seekg (0 , std::ios::beg);
51
51
52
52
stream << xmlSize;
@@ -55,12 +55,12 @@ void PluginGraph::custom_export(std::ostream& stream,
55
55
stream << binSize;
56
56
stream << binContent.rdbuf ();
57
57
58
- uint32_t mainBlobSize = _blob.size ();
58
+ uint32_t mainBlobSize = static_cast < uint32_t >( _blob.size () );
59
59
stream << mainBlobSize;
60
60
stream.write (reinterpret_cast <const char *>(_blob.data ()), _blob.size ());
61
61
62
62
const auto & initBlob = initGraph->_blob ;
63
- uint32_t initBlobSize = initBlob.size ();
63
+ uint32_t initBlobSize = static_cast < uint32_t >( initBlob.size () );
64
64
stream << initBlobSize;
65
65
stream.write (reinterpret_cast <const char *>(initBlob.data ()), initBlob.size ());
66
66
You can’t perform that action at this time.
0 commit comments