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