pub struct TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with call().
Implementations§
Source§impl<'f1, 'f2, 'f3, 'f4, 'f5, S: State> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, S: State> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, S>
Sourcepub fn call(self) -> Result<Tensor>where
S: IsComplete,
pub fn call(self) -> Result<Tensor>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn kernel_shape(
self,
value: &'f2 [usize],
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetKernelShape<S>>where
S::KernelShape: IsUnset,
pub fn kernel_shape(
self,
value: &'f2 [usize],
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetKernelShape<S>>where
S::KernelShape: IsUnset,
Required.
Sourcepub fn p(
self,
value: usize,
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetP<S>>where
S::P: IsUnset,
pub fn p(
self,
value: usize,
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetP<S>>where
S::P: IsUnset,
Sourcepub fn maybe_p(
self,
value: Option<usize>,
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetP<S>>where
S::P: IsUnset,
pub fn maybe_p(
self,
value: Option<usize>,
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetP<S>>where
S::P: IsUnset,
Sourcepub fn auto_pad(
self,
value: AutoPad,
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetAutoPad<S>>where
S::AutoPad: IsUnset,
pub fn auto_pad(
self,
value: AutoPad,
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetAutoPad<S>>where
S::AutoPad: IsUnset,
Sourcepub fn maybe_auto_pad(
self,
value: Option<AutoPad>,
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetAutoPad<S>>where
S::AutoPad: IsUnset,
pub fn maybe_auto_pad(
self,
value: Option<AutoPad>,
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetAutoPad<S>>where
S::AutoPad: IsUnset,
Sourcepub fn ceil_mode(
self,
value: bool,
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetCeilMode<S>>where
S::CeilMode: IsUnset,
pub fn ceil_mode(
self,
value: bool,
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetCeilMode<S>>where
S::CeilMode: IsUnset,
Sourcepub fn maybe_ceil_mode(
self,
value: Option<bool>,
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetCeilMode<S>>where
S::CeilMode: IsUnset,
pub fn maybe_ceil_mode(
self,
value: Option<bool>,
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetCeilMode<S>>where
S::CeilMode: IsUnset,
Sourcepub fn pads(
self,
value: &'f3 [i64],
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetPads<S>>where
S::Pads: IsUnset,
pub fn pads(
self,
value: &'f3 [i64],
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetPads<S>>where
S::Pads: IsUnset,
Sourcepub fn maybe_pads(
self,
value: Option<&'f3 [i64]>,
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetPads<S>>where
S::Pads: IsUnset,
pub fn maybe_pads(
self,
value: Option<&'f3 [i64]>,
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetPads<S>>where
S::Pads: IsUnset,
Sourcepub fn strides(
self,
value: &'f4 [i64],
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetStrides<S>>where
S::Strides: IsUnset,
pub fn strides(
self,
value: &'f4 [i64],
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetStrides<S>>where
S::Strides: IsUnset,
Sourcepub fn maybe_strides(
self,
value: Option<&'f4 [i64]>,
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetStrides<S>>where
S::Strides: IsUnset,
pub fn maybe_strides(
self,
value: Option<&'f4 [i64]>,
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetStrides<S>>where
S::Strides: IsUnset,
Sourcepub fn dilations(
self,
value: &'f5 [i64],
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetDilations<S>>where
S::Dilations: IsUnset,
pub fn dilations(
self,
value: &'f5 [i64],
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetDilations<S>>where
S::Dilations: IsUnset,
Sourcepub fn maybe_dilations(
self,
value: Option<&'f5 [i64]>,
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetDilations<S>>where
S::Dilations: IsUnset,
pub fn maybe_dilations(
self,
value: Option<&'f5 [i64]>,
) -> TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, SetDilations<S>>where
S::Dilations: IsUnset,
Auto Trait Implementations§
impl<'f1, 'f2, 'f3, 'f4, 'f5, S> Freeze for TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, S = Empty> !RefUnwindSafe for TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, S> Send for TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, S> Sync for TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, S> Unpin for TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, S> UnsafeUnpin for TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, S = Empty> !UnwindSafe for TensorLpPoolBuilder<'f1, 'f2, 'f3, 'f4, 'f5, S>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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