Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit 5a43c0f

Browse files
ashokeidiyessi
authored andcommitted
add get_preferred_pipeline_depth to executable (#3747)
1 parent b836b51 commit 5a43c0f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/ngraph/runtime/executable.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ const ngraph::ResultVector& runtime::Executable::get_results() const
108108
return m_results;
109109
}
110110

111+
size_t runtime::Executable::get_preferred_pipeline_depth() const
112+
{
113+
return 2;
114+
}
115+
111116
void runtime::Executable::set_parameters_and_results(const Function& func)
112117
{
113118
m_parameters = func.get_parameters();

src/ngraph/runtime/executable.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ class ngraph::runtime::Executable
6969
/// \returns an ngraph::ResultVector of all input parameters
7070
const ngraph::ResultVector& get_results() const;
7171

72+
/// \brief Get the preferred pipeline_depth for this executable
73+
/// \returns preferred pipeline_depth
74+
virtual size_t get_preferred_pipeline_depth() const;
75+
7276
/// \brief Save this compiled Executable to an output stream.
7377
/// Saved stream may be read with Backend::load
7478
virtual void save(std::ostream& output_stream);

0 commit comments

Comments
 (0)