Struct tract_core::ops::cnn::Patch [−][src]
pub struct Patch {Show 15 fields
pub spec: PatchSpec,
pub pad_before: TVec<usize>,
pub pad_after: TVec<usize>,
pub padded: bool,
pub output_shape: TVec<usize>,
pub data_field: Array2<isize>,
pub data_field_min_max: TVec<(isize, isize)>,
pub standard_layout_data_field: Vec<isize>,
pub op_strides_times_input_storage_strides: TVec<isize>,
pub valid_output_zone: TVec<Range<usize>>,
pub invalid_output_zones: TVec<TVec<Range<usize>>>,
pub zones: Vec<Zone>,
pub valid_zone: Option<usize>,
pub zone_strides: TVec<isize>,
pub input_layout_strides: TVec<isize>,
}
Fields
spec: PatchSpec
pad_before: TVec<usize>
pad_after: TVec<usize>
padded: bool
output_shape: TVec<usize>
data_field: Array2<isize>
data_field_min_max: TVec<(isize, isize)>
standard_layout_data_field: Vec<isize>
op_strides_times_input_storage_strides: TVec<isize>
valid_output_zone: TVec<Range<usize>>
invalid_output_zones: TVec<TVec<Range<usize>>>
zones: Vec<Zone>
valid_zone: Option<usize>
zone_strides: TVec<isize>
input_layout_strides: TVec<isize>
Implementations
pub fn centers_offsets(&self) -> Vec<isize>ⓘ
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