Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
e8c20bfa
Commit
e8c20bfa
authored
Mar 27, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnn: fix support drop for IE<2018R3
- fix build with IE 2018R3
parent
9340fc0c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
op_inf_engine.cpp
modules/dnn/src/op_inf_engine.cpp
+4
-0
op_inf_engine.hpp
modules/dnn/src/op_inf_engine.hpp
+2
-4
No files found.
modules/dnn/src/op_inf_engine.cpp
View file @
e8c20bfa
...
...
@@ -784,7 +784,11 @@ bool InfEngineBackendLayer::getMemoryShapes(const std::vector<MatShape> &inputs,
std
::
vector
<
MatShape
>
&
outputs
,
std
::
vector
<
MatShape
>
&
internals
)
const
{
#if INF_ENGINE_VER_MAJOR_EQ(INF_ENGINE_RELEASE_2018R3)
InferenceEngine
::
ICNNNetwork
::
InputShapes
inShapes
=
const_cast
<
InferenceEngine
::
CNNNetwork
&>
(
t_net
).
getInputShapes
();
#else
InferenceEngine
::
ICNNNetwork
::
InputShapes
inShapes
=
t_net
.
getInputShapes
();
#endif
InferenceEngine
::
ICNNNetwork
::
InputShapes
::
iterator
itr
;
bool
equal_flag
=
true
;
size_t
i
=
0
;
...
...
modules/dnn/src/op_inf_engine.hpp
View file @
e8c20bfa
...
...
@@ -114,10 +114,8 @@ public:
virtual
size_t
getBatchSize
()
const
noexcept
CV_OVERRIDE
;
#if INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2018R2)
virtual
InferenceEngine
::
StatusCode
AddExtension
(
const
InferenceEngine
::
IShapeInferExtensionPtr
&
extension
,
InferenceEngine
::
ResponseDesc
*
resp
)
noexcept
;
virtual
InferenceEngine
::
StatusCode
reshape
(
const
InputShapes
&
inputShapes
,
InferenceEngine
::
ResponseDesc
*
resp
)
noexcept
;
#endif
virtual
InferenceEngine
::
StatusCode
AddExtension
(
const
InferenceEngine
::
IShapeInferExtensionPtr
&
extension
,
InferenceEngine
::
ResponseDesc
*
resp
)
noexcept
CV_OVERRIDE
;
virtual
InferenceEngine
::
StatusCode
reshape
(
const
InputShapes
&
inputShapes
,
InferenceEngine
::
ResponseDesc
*
resp
)
noexcept
CV_OVERRIDE
;
void
init
(
int
targetId
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment