Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
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
ngraph
Commits
1d9a4951
Commit
1d9a4951
authored
Oct 25, 2019
by
Jimin Ha
Committed by
Scott Cyphers
Oct 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added set_parameters() and set_results() (#3801)
parent
2e6d6a60
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
executable.cpp
src/ngraph/runtime/executable.cpp
+10
-0
executable.hpp
src/ngraph/runtime/executable.hpp
+8
-0
No files found.
src/ngraph/runtime/executable.cpp
View file @
1d9a4951
...
...
@@ -113,6 +113,16 @@ size_t runtime::Executable::get_preferred_pipeline_depth() const
return
2
;
}
void
runtime
::
Executable
::
set_parameters
(
const
ngraph
::
ParameterVector
&
params
)
{
m_parameters
=
params
;
}
void
runtime
::
Executable
::
set_results
(
const
ngraph
::
ResultVector
&
results
)
{
m_results
=
results
;
}
void
runtime
::
Executable
::
set_parameters_and_results
(
const
Function
&
func
)
{
m_parameters
=
func
.
get_parameters
();
...
...
src/ngraph/runtime/executable.hpp
View file @
1d9a4951
...
...
@@ -73,6 +73,14 @@ public:
/// \returns preferred pipeline_depth
virtual
size_t
get_preferred_pipeline_depth
()
const
;
/// \brief Set the input Parameters
/// \param params ngraph::ParameterVector of all input parameters
void
set_parameters
(
const
ngraph
::
ParameterVector
&
params
);
/// \brief Set the output Results
/// \param results ngraph::ResultVector of all output results
void
set_results
(
const
ngraph
::
ResultVector
&
results
);
/// \brief Save this compiled Executable to an output stream.
/// Saved stream may be read with Backend::load
virtual
void
save
(
std
::
ostream
&
output_stream
);
...
...
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