pub struct ReshapeLayer<R: Clone> { /* private fields */ }Expand description
layer to apply an operation
Implementations§
Trait Implementations§
Source§impl<R: Clone + Clone> Clone for ReshapeLayer<R>
impl<R: Clone + Clone> Clone for ReshapeLayer<R>
Source§fn clone(&self) -> ReshapeLayer<R>
fn clone(&self) -> ReshapeLayer<R>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<R: Clone + Decompose> Decompose for ReshapeLayer<R>
impl<R: Clone + Decompose> Decompose for ReshapeLayer<R>
Source§type Decomposition = <R as Decompose>::Decomposition
type Decomposition = <R as Decompose>::Decomposition
the decomposed type
Source§fn compose(args: Self::Decomposition) -> Self
fn compose(args: Self::Decomposition) -> Self
recreates from the decomposition
Source§fn decompose(self) -> Self::Decomposition
fn decompose(self) -> Self::Decomposition
owned decomposition
Source§fn decompose_cloned(&self) -> Self::Decomposition
fn decompose_cloned(&self) -> Self::Decomposition
decomposition that copies data
Source§impl<R: Default + Clone> Default for ReshapeLayer<R>
impl<R: Default + Clone> Default for ReshapeLayer<R>
Source§fn default() -> ReshapeLayer<R>
fn default() -> ReshapeLayer<R>
Returns the “default value” for a type. Read more
Source§impl<'de, R> Deserialize<'de> for ReshapeLayer<R>where
R: Deserialize<'de> + Clone,
impl<'de, R> Deserialize<'de> for ReshapeLayer<R>where
R: Deserialize<'de> + Clone,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ReshapeLayer<Reshape>> for Config
impl From<ReshapeLayer<Reshape>> for Config
Source§fn from(value: ReshapeLayer<Reshape>) -> Self
fn from(value: ReshapeLayer<Reshape>) -> Self
Converts to this type from the input type.
Source§impl<B: Backend> From<ReshapeLayer<Reshape>> for Layer<B>
impl<B: Backend> From<ReshapeLayer<Reshape>> for Layer<B>
Source§fn from(value: ReshapeLayer<Reshape>) -> Self
fn from(value: ReshapeLayer<Reshape>) -> Self
Converts to this type from the input type.
Source§impl<M: AI<M::Output, M::Output> + Op, R: Clone> IntoSequence<M> for ReshapeLayer<R>where
ReshapeLayer<R>: Into<M>,
impl<M: AI<M::Output, M::Output> + Op, R: Clone> IntoSequence<M> for ReshapeLayer<R>where
ReshapeLayer<R>: Into<M>,
Source§fn into_sequence(self) -> Sequential<Vec<M>>
fn into_sequence(self) -> Sequential<Vec<M>>
converts into a sequential module list
Source§impl<R: Clone> Op for ReshapeLayer<R>
impl<R: Clone> Op for ReshapeLayer<R>
Source§type Output = Vec<f32>
type Output = Vec<f32>
suggested output type to help with composition coherence. Ideally, Self should implement AI<X,Self::Output> for some X
Source§fn abnormal_softmax(self, temperature: f32) -> AbnormalSoftmax<Self>
fn abnormal_softmax(self, temperature: f32) -> AbnormalSoftmax<Self>
wraps with a softmax operation
Source§fn chain<B>(self, b: B) -> Sequential<(Self, B)>
fn chain<B>(self, b: B) -> Sequential<(Self, B)>
sequences with another ai operation
Source§fn forward_fixed<Z>(&self, input: Z) -> Z
fn forward_fixed<Z>(&self, input: Z) -> Z
applies to the input
Source§fn forward_fixed_mut<Z>(&mut self, input: Z) -> Z
fn forward_fixed_mut<Z>(&mut self, input: Z) -> Z
applies to the input
Source§fn forward_typed<W, Z>(&self, input: W) -> Z
fn forward_typed<W, Z>(&self, input: W) -> Z
applies to the input
Source§fn forward_typed_mut<W, Z>(&mut self, input: W) -> Z
fn forward_typed_mut<W, Z>(&mut self, input: W) -> Z
applies to the input, possibly updating internal caches
Source§fn infer_autoregressive<X, Y>(self, input: X) -> Autoregression<Self, Y> ⓘ
fn infer_autoregressive<X, Y>(self, input: X) -> Autoregression<Self, Y> ⓘ
creates an autoregressive inference
Source§fn log_softmax(self, temperature: f32) -> LogSoftmax<Self>
fn log_softmax(self, temperature: f32) -> LogSoftmax<Self>
wraps with a softmax operation
Source§fn map<B>(self, b: B) -> Map<Sequential<(Self, B)>>
fn map<B>(self, b: B) -> Map<Sequential<(Self, B)>>
applies the operation to every output
Source§fn squared_error(self) -> SquaredError<Self>
fn squared_error(self) -> SquaredError<Self>
wraps with a mse operation
Source§fn wrap_inner(self) -> Inner<Self>where
Self: Sized,
fn wrap_inner(self) -> Inner<Self>where
Self: Sized,
wraps the inner value so it can be unwrapped with unwrap inner
Source§impl<R> Serialize for ReshapeLayer<R>
impl<R> Serialize for ReshapeLayer<R>
impl<R: Copy + Clone> Copy for ReshapeLayer<R>
impl<R: Eq + Clone> Eq for ReshapeLayer<R>
impl<R: Clone> StructuralPartialEq for ReshapeLayer<R>
Auto Trait Implementations§
impl<R> Freeze for ReshapeLayer<R>where
R: Freeze,
impl<R> RefUnwindSafe for ReshapeLayer<R>where
R: RefUnwindSafe,
impl<R> Send for ReshapeLayer<R>where
R: Send,
impl<R> Sync for ReshapeLayer<R>where
R: Sync,
impl<R> Unpin for ReshapeLayer<R>where
R: Unpin,
impl<R> UnwindSafe for ReshapeLayer<R>where
R: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Shortcuts for T
impl<T> Shortcuts for T
Source§fn classification(self) -> Classification<Self>
fn classification(self) -> Classification<Self>
wraps in a classification wrapper
Source§fn regression(self) -> Regression<Self>
fn regression(self) -> Regression<Self>
wraps in a regression wrapper