Executable

The compile function on an Executable has more direct methods to actions such as validate, call, get_performance_data, and so on.

class Executable

Subclassed by ngraph::runtime::cpu::CPU_Executable, ngraph::runtime::dynamic::DynamicExecutable, ngraph::runtime::gcpu::GCPUExecutable, ngraph::runtime::gpu::GPU_Executable, ngraph::runtime::intelgpu::IntelGPUExecutable, ngraph::runtime::interpreter::INTExecutable, ngraph::runtime::nop::NOPExecutable, ngraph::runtime::plaidml::PlaidML_Executable

Public Functions

virtual bool call(const std::vector<std::shared_ptr<runtime::Tensor>> &outputs, const std::vector<std::shared_ptr<runtime::Tensor>> &inputs) = 0

Return
true if iteration is successful, false otherwise
Parameters

bool call_with_validate(const std::vector<std::shared_ptr<runtime::Tensor>> &outputs, const std::vector<std::shared_ptr<runtime::Tensor>> &inputs)

Executes a single iteration of a Function.

Return
true if iteration is successful, false otherwise
Parameters

vector<runtime::PerformanceCounter> get_performance_data() const

Collect performance information gathered on a Function.

Return
Vector of PerformanceCounter information.

void validate(const std::vector<std::shared_ptr<runtime::Tensor>> &outputs, const std::vector<std::shared_ptr<runtime::Tensor>> &inputs)

Validates a Function.

Parameters

const ngraph::ParameterVector &get_parameters() const

Query the input Parameters.

Return
an ngraph::op::ParameterVector of all input parameters

const ngraph::ResultVector &get_results() const

Query the output Results.

Return
an ngraph::ResultVector of all input parameters

void save(std::ostream &output_stream)

Save this compiled Executable to an output stream. Saved stream may be read with Backend::load.