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
e89c1103
Commit
e89c1103
authored
Oct 22, 2019
by
Ruslan Garnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Returned GModel::mkDataNode() overload for external backends
parent
471b4004
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
gmodel.cpp
modules/gapi/src/compiler/gmodel.cpp
+14
-0
gmodel.hpp
modules/gapi/src/compiler/gmodel.hpp
+2
-0
No files found.
modules/gapi/src/compiler/gmodel.cpp
View file @
e89c1103
...
@@ -58,6 +58,20 @@ ade::NodeHandle GModel::mkDataNode(GModel::Graph &g, const GOrigin& origin)
...
@@ -58,6 +58,20 @@ ade::NodeHandle GModel::mkDataNode(GModel::Graph &g, const GOrigin& origin)
return
data_h
;
return
data_h
;
}
}
ade
::
NodeHandle
GModel
::
mkDataNode
(
GModel
::
Graph
&
g
,
const
GShape
shape
)
{
ade
::
NodeHandle
data_h
=
g
.
createNode
();
g
.
metadata
(
data_h
).
set
(
NodeType
{
NodeType
::
DATA
});
const
auto
id
=
g
.
metadata
().
get
<
DataObjectCounter
>
().
GetNewId
(
shape
);
GMetaArg
meta
;
HostCtor
ctor
;
Data
::
Storage
storage
=
Data
::
Storage
::
INTERNAL
;
// By default, all objects are marked INTERNAL
g
.
metadata
(
data_h
).
set
(
Data
{
shape
,
id
,
meta
,
ctor
,
storage
});
return
data_h
;
}
void
GModel
::
linkIn
(
Graph
&
g
,
ade
::
NodeHandle
opH
,
ade
::
NodeHandle
objH
,
std
::
size_t
in_port
)
void
GModel
::
linkIn
(
Graph
&
g
,
ade
::
NodeHandle
opH
,
ade
::
NodeHandle
objH
,
std
::
size_t
in_port
)
{
{
// Check if input is already connected
// Check if input is already connected
...
...
modules/gapi/src/compiler/gmodel.hpp
View file @
e89c1103
...
@@ -231,6 +231,8 @@ namespace GModel
...
@@ -231,6 +231,8 @@ namespace GModel
GAPI_EXPORTS
void
init
(
Graph
&
g
);
GAPI_EXPORTS
void
init
(
Graph
&
g
);
GAPI_EXPORTS
ade
::
NodeHandle
mkOpNode
(
Graph
&
g
,
const
GKernel
&
k
,
const
std
::
vector
<
GArg
>&
args
,
const
std
::
string
&
island
);
GAPI_EXPORTS
ade
::
NodeHandle
mkOpNode
(
Graph
&
g
,
const
GKernel
&
k
,
const
std
::
vector
<
GArg
>&
args
,
const
std
::
string
&
island
);
// Isn't used by the framework or default backends, required for external backend development
GAPI_EXPORTS
ade
::
NodeHandle
mkDataNode
(
Graph
&
g
,
const
GShape
shape
);
// Adds a string message to a node. Any node can be subject of log, messages then
// Adds a string message to a node. Any node can be subject of log, messages then
// appear in the dumped .dot file.x
// appear in the dumped .dot file.x
...
...
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