Commit 1d9a4951 authored by Jimin Ha's avatar Jimin Ha Committed by Scott Cyphers

Added set_parameters() and set_results() (#3801)

parent 2e6d6a60
......@@ -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();
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment