Skip to main content

BuilderConfig

Struct BuilderConfig 

Source
pub struct BuilderConfig<'builder> { /* private fields */ }
Expand description

Implementationsยง

Sourceยง

impl<'builder> BuilderConfig<'builder>

Source

pub fn set_progress_monitor( &mut self, progress_monitor: Box<dyn MonitorProgress>, ) -> Result<()>

See IBuilderConfig::setProgressMonitor The Rust bindings only allow setting the progress monitor once per builder config object

Source

pub fn set_memory_pool_limit(&mut self, pool: MemoryPoolType, size: usize)

Source

pub fn set_profiling_verbosity(&mut self, verbosity: ProfilingVerbosity)

Source

pub fn profiling_verbosity(&self) -> ProfilingVerbosity

Source

pub fn get_profiling_verbosity(&self) -> ProfilingVerbosity

๐Ÿ‘ŽDeprecated:

use profiling_verbosity instead

Source

pub fn set_avg_timing_iterations(&mut self, avg_timing: i32)

Source

pub fn avg_timing_iterations(&self) -> i32

Source

pub fn get_avg_timing_iterations(&self) -> i32

๐Ÿ‘ŽDeprecated:

use avg_timing_iterations instead

Source

pub fn set_engine_capability(&mut self, capability: EngineCapability)

Source

pub fn engine_capability(&self) -> EngineCapability

Source

pub fn get_engine_capability(&self) -> EngineCapability

๐Ÿ‘ŽDeprecated:

use engine_capability instead

Source

pub fn set_flags(&mut self, flags: u32)

Source

pub fn flags(&self) -> u32

Source

pub fn get_flags(&self) -> u32

๐Ÿ‘ŽDeprecated:

use flags instead

Source

pub fn set_flag(&mut self, flag: BuilderFlag)

Source

pub fn clear_flag(&mut self, flag: BuilderFlag)

Source

pub fn flag(&self, flag: BuilderFlag) -> bool

Source

pub fn get_flag(&self, flag: BuilderFlag) -> bool

๐Ÿ‘ŽDeprecated:

use flag instead

Source

pub fn set_dla_core(&mut self, dla_core: i32)

Source

pub fn dla_core(&self) -> i32

Source

pub fn get_dla_core(&self) -> i32

๐Ÿ‘ŽDeprecated:

use dla_core instead

Source

pub fn set_default_device_type(&mut self, device_type: DeviceType)

Source

pub fn default_device_type(&self) -> DeviceType

Source

pub fn get_default_device_type(&self) -> DeviceType

๐Ÿ‘ŽDeprecated:

use default_device_type instead

Source

pub fn reset(&mut self)

Source

pub fn nb_optimization_profiles(&self) -> i32

Source

pub fn get_nb_optimization_profiles(&self) -> i32

๐Ÿ‘ŽDeprecated:

use nb_optimization_profiles instead

Source

pub fn add_optimization_profile( &mut self, profile: &mut OptimizationProfile<'_>, ) -> Result<i32>

See IBuilderConfig::addOptimizationProfile. Returns the profile index (0-based) on success.

Source

pub fn set_tactic_sources(&mut self, sources: u32) -> Result<()>

Source

pub fn tactic_sources(&self) -> u32

Source

pub fn get_tactic_sources(&self) -> u32

๐Ÿ‘ŽDeprecated:

use tactic_sources instead

Source

pub fn memory_pool_limit(&self, pool: MemoryPoolType) -> usize

Source

pub fn get_memory_pool_limit(&self, pool: MemoryPoolType) -> usize

๐Ÿ‘ŽDeprecated:

use memory_pool_limit instead

Source

pub fn set_preview_feature(&mut self, feature: PreviewFeature, enable: bool)

Source

pub fn preview_feature(&self, feature: PreviewFeature) -> bool

Source

pub fn get_preview_feature(&self, feature: PreviewFeature) -> bool

๐Ÿ‘ŽDeprecated:

use preview_feature instead

Source

pub fn set_builder_optimization_level(&mut self, level: i32)

Source

pub fn builder_optimization_level(&mut self) -> i32

Source

pub fn get_builder_optimization_level(&mut self) -> i32

๐Ÿ‘ŽDeprecated:

use builder_optimization_level instead

Source

pub fn set_hardware_compatibility_level( &mut self, level: HardwareCompatibilityLevel, )

Source

pub fn hardware_compatibility_level(&self) -> HardwareCompatibilityLevel

Source

pub fn get_hardware_compatibility_level(&self) -> HardwareCompatibilityLevel

๐Ÿ‘ŽDeprecated:

use hardware_compatibility_level instead

Source

pub fn set_max_aux_streams(&mut self, nb_streams: i32)

Source

pub fn max_aux_streams(&self) -> i32

Source

pub fn get_max_aux_streams(&self) -> i32

๐Ÿ‘ŽDeprecated:

use max_aux_streams instead

Source

pub fn set_runtime_platform(&mut self, platform: RuntimePlatform)

Source

pub fn runtime_platform(&self) -> RuntimePlatform

Source

pub fn get_runtime_platform(&self) -> RuntimePlatform

๐Ÿ‘ŽDeprecated:

use runtime_platform instead

Source

pub fn set_max_nb_tactics(&mut self, max_nb_tactics: i32)

Source

pub fn max_nb_tactics(&self) -> i32

Source

pub fn get_max_nb_tactics(&self) -> i32

๐Ÿ‘ŽDeprecated:

use max_nb_tactics instead

Source

pub fn set_tiling_optimization_level( &mut self, level: TilingOptimizationLevel, ) -> Result<()>

Source

pub fn tiling_optimization_level(&self) -> TilingOptimizationLevel

Source

pub fn get_tiling_optimization_level(&self) -> TilingOptimizationLevel

๐Ÿ‘ŽDeprecated:

use tiling_optimization_level instead

Source

pub fn set_l2_limit_for_tiling(&mut self, size: i64) -> Result<()>

Source

pub fn l2_limit_for_tiling(&self) -> i64

Source

pub fn get_l2_limit_for_tiling(&self) -> i64

๐Ÿ‘ŽDeprecated:

use l2_limit_for_tiling instead

Source

pub fn set_nb_compute_capabilities( &mut self, max_nb_compute_capabilities: i32, ) -> Result<()>

Source

pub fn nb_compute_capabilities(&self) -> i32

Source

pub fn get_nb_compute_capabilities(&self) -> i32

๐Ÿ‘ŽDeprecated:

use nb_compute_capabilities instead

Source

pub fn set_compute_capability( &mut self, compute_capability: ComputeCapability, index: i32, ) -> Result<()>

Source

pub fn compute_capability(&self, index: i32) -> ComputeCapability

Source

pub fn get_compute_capability(&self, index: i32) -> ComputeCapability

๐Ÿ‘ŽDeprecated:

use compute_capability instead

Trait Implementationsยง

Sourceยง

impl Debug for BuilderConfig<'_>

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementationsยง

ยง

impl<'builder> Freeze for BuilderConfig<'builder>

ยง

impl<'builder> !RefUnwindSafe for BuilderConfig<'builder>

ยง

impl<'builder> !Send for BuilderConfig<'builder>

ยง

impl<'builder> !Sync for BuilderConfig<'builder>

ยง

impl<'builder> Unpin for BuilderConfig<'builder>

ยง

impl<'builder> UnsafeUnpin for BuilderConfig<'builder>

ยง

impl<'builder> !UnwindSafe for BuilderConfig<'builder>

Blanket Implementationsยง

Sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

Sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

Sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

Sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
Sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Sourceยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.