Struct tract_pulse::internal::tract_core::ops::cnn::Patch [−]
pub struct Patch {Show 15 fields
pub spec: PatchSpec,
pub pad_before: SmallVec<[usize; 4]>,
pub pad_after: SmallVec<[usize; 4]>,
pub padded: bool,
pub output_shape: SmallVec<[usize; 4]>,
pub data_field: ArrayBase<OwnedRepr<isize>, Dim<[usize; 2]>>,
pub data_field_min_max: SmallVec<[(isize, isize); 4]>,
pub standard_layout_data_field: Vec<isize, Global>,
pub op_strides_times_input_storage_strides: SmallVec<[isize; 4]>,
pub valid_output_zone: SmallVec<[Range<usize>; 4]>,
pub invalid_output_zones: SmallVec<[SmallVec<[Range<usize>; 4]>; 4]>,
pub zones: Vec<Zone, Global>,
pub valid_zone: Option<usize>,
pub zone_strides: SmallVec<[isize; 4]>,
pub input_layout_strides: SmallVec<[isize; 4]>,
}Fields
spec: PatchSpecpad_before: SmallVec<[usize; 4]>pad_after: SmallVec<[usize; 4]>padded: booloutput_shape: SmallVec<[usize; 4]>data_field: ArrayBase<OwnedRepr<isize>, Dim<[usize; 2]>>data_field_min_max: SmallVec<[(isize, isize); 4]>standard_layout_data_field: Vec<isize, Global>op_strides_times_input_storage_strides: SmallVec<[isize; 4]>valid_output_zone: SmallVec<[Range<usize>; 4]>invalid_output_zones: SmallVec<[SmallVec<[Range<usize>; 4]>; 4]>zones: Vec<Zone, Global>valid_zone: Option<usize>zone_strides: SmallVec<[isize; 4]>input_layout_strides: SmallVec<[isize; 4]>Implementations
impl Patch
impl Patch
pub fn visit_output(&self, acceptor: impl FnMut(&Scanner<'_>))
pub fn centers_offsets(&self) -> Vec<isize, Global>ⓘ
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Patch
impl UnwindSafe for Patch
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘimpl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘimpl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read more
Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read more