clDNN
cldnn::build_option Struct Referenceabstract

Represents user-provided program build option. More...

#include <program.hpp>

Inheritance diagram for cldnn::build_option:

Static Public Member Functions

static std::shared_ptr< const build_optionfusing (bool enable=false)
 Allow primitives fusing during program build (default: false).
 
static std::shared_ptr< const build_optionoptimize_data (bool enable=false)
 Enable implicit reordering for user inputs (default: false).
 
static std::shared_ptr< const build_optiondebug (bool enable=false)
 Enable debug mode (default: false). More...
 
static std::shared_ptr< const build_optionoutputs (const std::vector< primitive_id > &outs)
 User selected list of program outputs.
 
static std::shared_ptr< const build_optiontuning_config (const tuning_config_options &config=tuning_config_options())
 Tuning configuration (default: false). More...
 
static std::shared_ptr< const build_optiongraph_dumps_dir (const std::string &dir_path)
 Specifies a directory to which stages of network compilation should be dumped (default: empty, i.e. no dumping)
 

Detailed Description

Represents user-provided program build option.

Definition at line 89 of file program.hpp.

Member Function Documentation

◆ debug()

static std::shared_ptr<const build_option> cldnn::build_option::debug ( bool  enable = false)
static

Enable debug mode (default: false).

This option enforce all program primitives to be accessible as outputs.

◆ tuning_config()

static std::shared_ptr<const build_option> cldnn::build_option::tuning_config ( const tuning_config_options config = tuning_config_options())
static

Tuning configuration (default: false).

This option will automatically find the optimal kernel/config for each node in the graph, by running multiple implementations and configurations per node and storing the optimal one in cache. Expect long execution time in the first run (unless the cache only mode is enabled). After the first run a cache with the tuning results will be created in the path provided. This cache will be used in the next runs.


The documentation for this struct was generated from the following file: