Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromopencv/opencv

Commit63e92cc

Browse files
committed
Conditional compilation for network reader
1 parent5ed6546 commit63e92cc

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

‎modules/dnn/test/test_ie_models.cpp‎

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,6 @@ void runIE(Target target, const std::string& xmlPath, const std::string& binPath
136136
{
137137
SCOPED_TRACE("runIE");
138138

139-
CNNNetReader reader;
140-
reader.ReadNetwork(xmlPath);
141-
reader.ReadWeights(binPath);
142-
143-
CNNNetwork net = reader.getNetwork();
144-
145139
std::string device_name;
146140

147141
#if defined(INF_ENGINE_RELEASE) && INF_ENGINE_VER_MAJOR_GT(2019010000)
@@ -150,6 +144,17 @@ void runIE(Target target, const std::string& xmlPath, const std::string& binPath
150144
InferenceEnginePluginPtr enginePtr;
151145
InferencePlugin plugin;
152146
#endif
147+
148+
#if defined(INF_ENGINE_RELEASE) && INF_ENGINE_VER_MAJOR_GT(2019030000)
149+
CNNNetwork net = ie.ReadNetwork(xmlPath, binPath);
150+
#else
151+
CNNNetReader reader;
152+
reader.ReadNetwork(xmlPath);
153+
reader.ReadWeights(binPath);
154+
155+
CNNNetwork net = reader.getNetwork();
156+
#endif
157+
153158
ExecutableNetwork netExec;
154159
InferRequest infRequest;
155160

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp