Struct burn::tensor::ops::UnfoldOptions
pub struct UnfoldOptions {
pub stride: [usize; 2],
pub padding: [usize; 2],
pub dilation: [usize; 2],
}
Expand description
Unfold operation options.
Fields§
§stride: [usize; 2]
The number of positions to slide over the input tensor in each dimension.
A stride of [1, 1]
will slide the kernel one pixel at a time.
padding: [usize; 2]
The number of zero-padding pixels added to each side of the input tensor in each dimension.
dilation: [usize; 2]
The spacing between the blocks (patches) in the original input tensor.
Implementations§
§impl UnfoldOptions
impl UnfoldOptions
Trait Implementations§
§impl Clone for UnfoldOptions
impl Clone for UnfoldOptions
§fn clone(&self) -> UnfoldOptions
fn clone(&self) -> UnfoldOptions
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for UnfoldOptions
impl RefUnwindSafe for UnfoldOptions
impl Send for UnfoldOptions
impl Sync for UnfoldOptions
impl Unpin for UnfoldOptions
impl UnwindSafe for UnfoldOptions
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more