pub struct ChainedTransform<B: Backend, T1, T2, const D: usize> {
pub first: T1,
pub second: T2,
/* private fields */
}Expand description
Composition second(first(points)).
Fields§
§first: T1First transform applied.
second: T2Second transform applied.
Implementations§
Trait Implementations§
Source§impl<B: Clone + Backend, T1: Clone, T2: Clone, const D: usize> Clone for ChainedTransform<B, T1, T2, D>
impl<B: Clone + Backend, T1: Clone, T2: Clone, const D: usize> Clone for ChainedTransform<B, T1, T2, D>
Source§fn clone(&self) -> ChainedTransform<B, T1, T2, D>
fn clone(&self) -> ChainedTransform<B, T1, T2, D>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<B, T1, T2, const D: usize> Module<f32, B> for ChainedTransform<B, T1, T2, D>where
B: Backend + BackendOps<f32> + Default,
B::DeviceBuffer<f32>: CpuAddressableStorage<f32> + CpuAddressableStorageMut<f32>,
T1: Module<f32, B>,
T2: Module<f32, B>,
impl<B, T1, T2, const D: usize> Module<f32, B> for ChainedTransform<B, T1, T2, D>where
B: Backend + BackendOps<f32> + Default,
B::DeviceBuffer<f32>: CpuAddressableStorage<f32> + CpuAddressableStorageMut<f32>,
T1: Module<f32, B>,
T2: Module<f32, B>,
Source§fn parameters(&self) -> Vec<Var<f32, B>>
fn parameters(&self) -> Vec<Var<f32, B>>
Collect all trainable parameters (including from sub-modules).
Source§fn named_parameters(&self) -> Vec<Parameter<f32, B>>
fn named_parameters(&self) -> Vec<Parameter<f32, B>>
Collect trainable parameters with stable hierarchical names. Read more
Source§fn forward(
&self,
input: &Var<f32, B>,
) -> Result<Var<f32, B>, ModuleError<<B as ComputeBackend>::Error>>
fn forward( &self, input: &Var<f32, B>, ) -> Result<Var<f32, B>, ModuleError<<B as ComputeBackend>::Error>>
Evaluate this module. Read more
Source§fn load_parameters(&mut self, parameters: &[Var<f32, B>])
fn load_parameters(&mut self, parameters: &[Var<f32, B>])
Write optimizer-updated parameter values back into this module’s own
fields, consuming
params in the same order parameters() enumerates
them (i.e. params.len() == parameters().len()). Read moreSource§fn load_named_parameters(
&mut self,
parameters: &[Parameter<T, B>],
) -> Result<(), ParameterLoadError>
fn load_named_parameters( &mut self, parameters: &[Parameter<T, B>], ) -> Result<(), ParameterLoadError>
Load optimizer-updated named parameters after validating the complete
stable path inventory. Read more
Source§impl<B, T1, T2, const D: usize> Transform<B, D> for ChainedTransform<B, T1, T2, D>
impl<B, T1, T2, const D: usize> Transform<B, D> for ChainedTransform<B, T1, T2, D>
Auto Trait Implementations§
impl<B, T1, T2, const D: usize> Freeze for ChainedTransform<B, T1, T2, D>
impl<B, T1, T2, const D: usize> RefUnwindSafe for ChainedTransform<B, T1, T2, D>where
T1: RefUnwindSafe,
T2: RefUnwindSafe,
impl<B, T1, T2, const D: usize> Send for ChainedTransform<B, T1, T2, D>
impl<B, T1, T2, const D: usize> Sync for ChainedTransform<B, T1, T2, D>
impl<B, T1, T2, const D: usize> Unpin for ChainedTransform<B, T1, T2, D>
impl<B, T1, T2, const D: usize> UnsafeUnpin for ChainedTransform<B, T1, T2, D>where
T1: UnsafeUnpin,
T2: UnsafeUnpin,
impl<B, T1, T2, const D: usize> UnwindSafe for ChainedTransform<B, T1, T2, D>where
T1: UnwindSafe,
T2: UnwindSafe,
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.