pub struct TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 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, 'f6, 'f7, 'f8, 'f9, S: State> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, S: State> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 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 weight(
self,
value: &'f2 Tensor,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetWeight<S>>where
S::Weight: IsUnset,
pub fn weight(
self,
value: &'f2 Tensor,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetWeight<S>>where
S::Weight: IsUnset,
Required.
Sourcepub fn bias(
self,
value: &'f3 Tensor,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetBias<S>>where
S::Bias: IsUnset,
pub fn bias(
self,
value: &'f3 Tensor,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetBias<S>>where
S::Bias: IsUnset,
Sourcepub fn maybe_bias(
self,
value: Option<&'f3 Tensor>,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetBias<S>>where
S::Bias: IsUnset,
pub fn maybe_bias(
self,
value: Option<&'f3 Tensor>,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetBias<S>>where
S::Bias: IsUnset,
Sourcepub fn auto_pad(
self,
value: AutoPad,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetAutoPad<S>>where
S::AutoPad: IsUnset,
pub fn auto_pad(
self,
value: AutoPad,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetAutoPad<S>>where
S::AutoPad: IsUnset,
Sourcepub fn maybe_auto_pad(
self,
value: Option<AutoPad>,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetAutoPad<S>>where
S::AutoPad: IsUnset,
pub fn maybe_auto_pad(
self,
value: Option<AutoPad>,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetAutoPad<S>>where
S::AutoPad: IsUnset,
Sourcepub fn group(
self,
value: usize,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetGroup<S>>where
S::Group: IsUnset,
pub fn group(
self,
value: usize,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetGroup<S>>where
S::Group: IsUnset,
Sourcepub fn maybe_group(
self,
value: Option<usize>,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetGroup<S>>where
S::Group: IsUnset,
pub fn maybe_group(
self,
value: Option<usize>,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetGroup<S>>where
S::Group: IsUnset,
Sourcepub fn kernel_shape(
self,
value: &'f4 [usize],
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetKernelShape<S>>where
S::KernelShape: IsUnset,
pub fn kernel_shape(
self,
value: &'f4 [usize],
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetKernelShape<S>>where
S::KernelShape: IsUnset,
Sourcepub fn maybe_kernel_shape(
self,
value: Option<&'f4 [usize]>,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetKernelShape<S>>where
S::KernelShape: IsUnset,
pub fn maybe_kernel_shape(
self,
value: Option<&'f4 [usize]>,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetKernelShape<S>>where
S::KernelShape: IsUnset,
Sourcepub fn pads(
self,
value: &'f5 [i64],
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetPads<S>>where
S::Pads: IsUnset,
pub fn pads(
self,
value: &'f5 [i64],
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetPads<S>>where
S::Pads: IsUnset,
Sourcepub fn maybe_pads(
self,
value: Option<&'f5 [i64]>,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetPads<S>>where
S::Pads: IsUnset,
pub fn maybe_pads(
self,
value: Option<&'f5 [i64]>,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetPads<S>>where
S::Pads: IsUnset,
Sourcepub fn output_shape(
self,
value: &'f6 [i64],
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetOutputShape<S>>where
S::OutputShape: IsUnset,
pub fn output_shape(
self,
value: &'f6 [i64],
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetOutputShape<S>>where
S::OutputShape: IsUnset,
Sourcepub fn maybe_output_shape(
self,
value: Option<&'f6 [i64]>,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetOutputShape<S>>where
S::OutputShape: IsUnset,
pub fn maybe_output_shape(
self,
value: Option<&'f6 [i64]>,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetOutputShape<S>>where
S::OutputShape: IsUnset,
Sourcepub fn output_padding(
self,
value: &'f7 [usize],
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetOutputPadding<S>>where
S::OutputPadding: IsUnset,
pub fn output_padding(
self,
value: &'f7 [usize],
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetOutputPadding<S>>where
S::OutputPadding: IsUnset,
Sourcepub fn maybe_output_padding(
self,
value: Option<&'f7 [usize]>,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetOutputPadding<S>>where
S::OutputPadding: IsUnset,
pub fn maybe_output_padding(
self,
value: Option<&'f7 [usize]>,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetOutputPadding<S>>where
S::OutputPadding: IsUnset,
Sourcepub fn strides(
self,
value: &'f8 [i64],
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetStrides<S>>where
S::Strides: IsUnset,
pub fn strides(
self,
value: &'f8 [i64],
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetStrides<S>>where
S::Strides: IsUnset,
Sourcepub fn maybe_strides(
self,
value: Option<&'f8 [i64]>,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetStrides<S>>where
S::Strides: IsUnset,
pub fn maybe_strides(
self,
value: Option<&'f8 [i64]>,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetStrides<S>>where
S::Strides: IsUnset,
Sourcepub fn dilations(
self,
value: &'f9 [i64],
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetDilations<S>>where
S::Dilations: IsUnset,
pub fn dilations(
self,
value: &'f9 [i64],
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetDilations<S>>where
S::Dilations: IsUnset,
Sourcepub fn maybe_dilations(
self,
value: Option<&'f9 [i64]>,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetDilations<S>>where
S::Dilations: IsUnset,
pub fn maybe_dilations(
self,
value: Option<&'f9 [i64]>,
) -> TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, SetDilations<S>>where
S::Dilations: IsUnset,
Auto Trait Implementations§
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, S> Freeze for TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, S = Empty> !RefUnwindSafe for TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, S> Send for TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, S> Sync for TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, S> Unpin for TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, S> UnsafeUnpin for TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, S>
impl<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, S = Empty> !UnwindSafe for TensorConvTransposeBuilder<'f1, 'f2, 'f3, 'f4, 'f5, 'f6, 'f7, 'f8, 'f9, 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