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
883c4c60
Commit
883c4c60
authored
Dec 09, 2019
by
Dmitry Kurtaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Dummy layer
parent
629d47fc
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 @
883c4c60
...
@@ -55,36 +55,6 @@
...
@@ -55,36 +55,6 @@
#ifdef HAVE_DNN_NGRAPH
#ifdef HAVE_DNN_NGRAPH
#include "../ie_ngraph.hpp"
#include "../ie_ngraph.hpp"
#include <ngraph/op/experimental/layers/detection_output.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
#endif
namespace
cv
namespace
cv
...
@@ -1000,10 +970,8 @@ public:
...
@@ -1000,10 +970,8 @@ public:
attrs
.
code_type
=
std
::
string
{
"caffe.PriorBoxParameter."
+
_codeType
};
attrs
.
code_type
=
std
::
string
{
"caffe.PriorBoxParameter."
+
_codeType
};
attrs
.
normalized
=
true
;
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
,
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
));
return
Ptr
<
BackendNode
>
(
new
InfEngineNgraphNode
(
det_out
));
}
}
#endif // HAVE_DNN_NGRAPH
#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