This repository was archived by the owner on Jan 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,16 @@ size_t runtime::Executable::get_preferred_pipeline_depth() const
113113 return 2 ;
114114}
115115
116+ void runtime::Executable::set_parameters (const ngraph::ParameterVector& params)
117+ {
118+ m_parameters = params;
119+ }
120+
121+ void runtime::Executable::set_results (const ngraph::ResultVector& results)
122+ {
123+ m_results = results;
124+ }
125+
116126void runtime::Executable::set_parameters_and_results (const Function& func)
117127{
118128 m_parameters = func.get_parameters ();
Original file line number Diff line number Diff line change @@ -73,6 +73,14 @@ class ngraph::runtime::Executable
7373 // / \returns preferred pipeline_depth
7474 virtual size_t get_preferred_pipeline_depth () const ;
7575
76+ // / \brief Set the input Parameters
77+ // / \param params ngraph::ParameterVector of all input parameters
78+ void set_parameters (const ngraph::ParameterVector& params);
79+
80+ // / \brief Set the output Results
81+ // / \param results ngraph::ResultVector of all output results
82+ void set_results (const ngraph::ResultVector& results);
83+
7684 // / \brief Save this compiled Executable to an output stream.
7785 // / Saved stream may be read with Backend::load
7886 virtual void save (std::ostream& output_stream);
You can’t perform that action at this time.
0 commit comments