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
a4cb9146
Commit
a4cb9146
authored
Dec 09, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16101 from dkurt:dnn_ie_ngraph_detection_output
parents
2817cbe4
883c4c60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
33 deletions
+1
-33
detection_output_layer.cpp
modules/dnn/src/layers/detection_output_layer.cpp
+1
-33
No files found.
modules/dnn/src/layers/detection_output_layer.cpp
View file @
a4cb9146
...
...
@@ -55,36 +55,6 @@
#ifdef HAVE_DNN_NGRAPH
#include "../ie_ngraph.hpp"
#include <ngraph/op/experimental/layers/detection_output.hpp>
namespace
ngraph
{
namespace
op
{
class
Dummy
:
public
Op
{
public
:
Dummy
()
:
Op
(
"Dummy"
,
{})
{
constructor_validate_and_infer_types
();
}
void
validate_and_infer_types
()
override
{
set_output_type
(
0
,
ngraph
::
element
::
Type
(),
{});
}
std
::
shared_ptr
<
Node
>
copy_with_new_args
(
const
NodeVector
&
new_args
)
const
override
{
if
(
!
new_args
.
empty
())
throw
ngraph_error
(
"Incorrect number of new arguments"
);
return
std
::
make_shared
<
Dummy
>
();
}
static
constexpr
NodeTypeInfo
type_info
{
"Dummy"
,
1
};
const
NodeTypeInfo
&
get_type_info
()
const
override
{
return
type_info
;
}
};
constexpr
NodeTypeInfo
Dummy
::
type_info
;
}
// namespace op
}
// namespace ngraph
#endif
namespace
cv
...
...
@@ -1000,10 +970,8 @@ public:
attrs
.
code_type
=
std
::
string
{
"caffe.PriorBoxParameter."
+
_codeType
};
attrs
.
normalized
=
true
;
auto
aux_class_preds
=
std
::
make_shared
<
ngraph
::
op
::
Dummy
>
();
auto
aux_box_preds
=
std
::
make_shared
<
ngraph
::
op
::
Dummy
>
();
auto
det_out
=
std
::
make_shared
<
ngraph
::
op
::
DetectionOutput
>
(
box_logits
,
class_preds
,
proposals
,
a
ux_class_preds
,
aux_box_preds
,
a
ttrs
);
proposals
,
attrs
);
return
Ptr
<
BackendNode
>
(
new
InfEngineNgraphNode
(
det_out
));
}
#endif // HAVE_DNN_NGRAPH
...
...
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