Struct burn_tensor::ops::UnfoldOptions
source · 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§
Trait Implementations§
source§impl Clone for UnfoldOptions
impl Clone for UnfoldOptions
source§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
)