Struct tract_core::ops::cnn::Patch [−][src]
pub struct Patch {}Show 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
impl Patch
[src]
impl Patch
[src]pub fn rank(&self) -> usize
[src]
pub fn visit_output(&self, acceptor: impl FnMut(&Scanner<'_>))
[src]
pub fn centers_offsets(&self) -> Vec<isize>ⓘ
[src]
pub fn at<'p>(&'p self, coords: &[usize]) -> PatchIterator<'p>
[src]
pub fn at_hint<'p>(
&'p self,
coords: &[usize],
hint: Option<bool>
) -> PatchIterator<'p>
[src]
&'p self,
coords: &[usize],
hint: Option<bool>
) -> PatchIterator<'p>
pub fn global_offset_for(&self, coords: &[usize], patch_index: usize) -> usize
[src]
Trait Implementations
impl StructuralPartialEq for Patch
[src]
Auto Trait Implementations
impl RefUnwindSafe for Patch
impl Send for Patch
impl Sync for Patch
impl Unpin for Patch
impl UnwindSafe for Patch
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
[src]
impl<T> Downcast for T where
T: Any,
[src]pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?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
A: Allocator,
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?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
A: Allocator,
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]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
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]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
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]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
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more