pub struct ConstantPad3d<D: Dtype, IT, OT, const RANK: usize> {
pub pad_d1: usize,
pub pad_d2: usize,
pub pad_h1: usize,
pub pad_h2: usize,
pub pad_w1: usize,
pub pad_w2: usize,
pub value: f64,
/* private fields */
}Expand description
3-D constant padding: pads with a fixed value on each side.
Fields§
§pad_d1: usizePadding/config parameter; see the struct docs.
pad_d2: usizePadding/config parameter; see the struct docs.
pad_h1: usizePadding/config parameter; see the struct docs.
pad_h2: usizePadding/config parameter; see the struct docs.
pad_w1: usizePadding/config parameter; see the struct docs.
pad_w2: usizePadding/config parameter; see the struct docs.
value: f64Padding/config parameter; see the struct docs.
Implementations§
Trait Implementations§
Source§impl<D: Dtype, IT: Tensor<D, RANK> + EagerTensor, OT: Tensor<D, RANK>, const RANK: usize> Layer<IT> for ConstantPad3d<D, IT, OT, RANK>
impl<D: Dtype, IT: Tensor<D, RANK> + EagerTensor, OT: Tensor<D, RANK>, const RANK: usize> Layer<IT> for ConstantPad3d<D, IT, OT, RANK>
Auto Trait Implementations§
impl<D, IT, OT, const RANK: usize> Freeze for ConstantPad3d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> RefUnwindSafe for ConstantPad3d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> Send for ConstantPad3d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> Sync for ConstantPad3d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> Unpin for ConstantPad3d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> UnsafeUnpin for ConstantPad3d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> UnwindSafe for ConstantPad3d<D, IT, OT, RANK>
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