pub struct CenterCrop {
pub crop_h: usize,
pub crop_w: usize,
}Expand description
Center-crops a 3D tensor ([C, H, W]) to target height crop_h and width crop_w.
Fields§
§crop_h: usizeTarget height.
crop_w: usizeTarget width.
Implementations§
Trait Implementations§
Source§impl Clone for CenterCrop
impl Clone for CenterCrop
Source§fn clone(&self) -> CenterCrop
fn clone(&self) -> CenterCrop
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CenterCrop
Source§impl Debug for CenterCrop
impl Debug for CenterCrop
Auto Trait Implementations§
impl Freeze for CenterCrop
impl RefUnwindSafe for CenterCrop
impl Send for CenterCrop
impl Sync for CenterCrop
impl Unpin for CenterCrop
impl UnsafeUnpin for CenterCrop
impl UnwindSafe for CenterCrop
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