pub struct ChunkingOptions { /* private fields */ }Expand description
Options for chunked inference over long clips.
Implementations§
Source§impl ChunkingOptions
impl ChunkingOptions
Sourcepub const fn window_samples(&self) -> usize
pub const fn window_samples(&self) -> usize
Returns the chunk window size in samples.
Sourcepub const fn hop_samples(&self) -> usize
pub const fn hop_samples(&self) -> usize
Returns the chunk hop size in samples.
Sourcepub const fn batch_size(&self) -> usize
pub const fn batch_size(&self) -> usize
Returns the maximum number of equal-length chunks to batch into one model call.
Sourcepub const fn aggregation(&self) -> ChunkAggregation
pub const fn aggregation(&self) -> ChunkAggregation
Returns the aggregation strategy.
Sourcepub const fn with_window_samples(self, window_samples: usize) -> Self
pub const fn with_window_samples(self, window_samples: usize) -> Self
Sets the chunk window size in samples.
Sourcepub const fn with_hop_samples(self, hop_samples: usize) -> Self
pub const fn with_hop_samples(self, hop_samples: usize) -> Self
Sets the chunk hop size in samples.
Sourcepub const fn with_batch_size(self, batch_size: usize) -> Self
pub const fn with_batch_size(self, batch_size: usize) -> Self
Sets the chunk batch size used by batched chunked inference.
Sourcepub const fn with_aggregation(self, aggregation: ChunkAggregation) -> Self
pub const fn with_aggregation(self, aggregation: ChunkAggregation) -> Self
Sets the aggregation strategy.
Trait Implementations§
Source§impl Clone for ChunkingOptions
impl Clone for ChunkingOptions
Source§fn clone(&self) -> ChunkingOptions
fn clone(&self) -> ChunkingOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChunkingOptions
impl Debug for ChunkingOptions
Source§impl Default for ChunkingOptions
impl Default for ChunkingOptions
Source§impl PartialEq for ChunkingOptions
impl PartialEq for ChunkingOptions
impl Copy for ChunkingOptions
impl Eq for ChunkingOptions
impl StructuralPartialEq for ChunkingOptions
Auto Trait Implementations§
impl Freeze for ChunkingOptions
impl RefUnwindSafe for ChunkingOptions
impl Send for ChunkingOptions
impl Sync for ChunkingOptions
impl Unpin for ChunkingOptions
impl UnsafeUnpin for ChunkingOptions
impl UnwindSafe for ChunkingOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more