class nbla::utils::nnp::Executor

class Executor

Executor associated with Nnp object.

The Executor object internally stores a Network object.

Public Functions

NBLA_API string name () const

Executor name.

NBLA_API string network_name () const

Network name.

NBLA_API void set_batch_size (int batch_size)

Set batch size.

Parameters:

batch_size[in] Overwrite the default batch size in Network.

NBLA_API int batch_size () const

Get batch size.

Return values:

Batch – size. The if set_batch_size is not previously called, batch size written in the Network of NNabla format file will be returned.

NBLA_API vector< DataVariable > get_data_variables ()

Get data variables.

Return values:

Data – variables where each item holds name info and CgVariable instance in the Network. The data inside the CgVariable should be gotten via Nnabla C++ interface.

NBLA_API vector< OutputVariable > get_output_variables ()

Get output variables.

Return values:

Output – variables where each item holds name info and CgVariable instance in the Network. The data inside the CgVariable should be gotten via Nnabla C++ interface.

NBLA_API shared_ptr< Network > get_network ()

Get the reference (shared_ptr) of Network object held in this.

NBLA_API void execute ()

Execute the network from inputs to outputs.

struct DataVariable

Data variable container.

The string fields corresponds to DataVariable in proto definition.

struct OutputVariable

Output variable container.

The string fields corresponds to OutputVariable in proto definition.