pub struct IdentityAdapter;Expand description
Identity adapter that passes tensors through unchanged
Trait Implementations§
Source§impl Clone for IdentityAdapter
impl Clone for IdentityAdapter
Source§impl Debug for IdentityAdapter
impl Debug for IdentityAdapter
Source§impl Default for IdentityAdapter
impl Default for IdentityAdapter
Source§impl ModuleAdapter for IdentityAdapter
impl ModuleAdapter for IdentityAdapter
Source§fn adapt(&self, tensor: PackTensor, _ctx: ModuleContext<'_>) -> PackTensor
fn adapt(&self, tensor: PackTensor, _ctx: ModuleContext<'_>) -> PackTensor
Adapt a tensor given where in the module hierarchy it was found. Read more
Source§fn clone_box(&self) -> Box<dyn ModuleAdapter>
fn clone_box(&self) -> Box<dyn ModuleAdapter>
Clone the adapter into a boxed trait object
Source§fn get_alternative_param_name(
&self,
_param_name: &str,
_module_type: &str,
) -> Option<String>
fn get_alternative_param_name( &self, _param_name: &str, _module_type: &str, ) -> Option<String>
Get alternative parameter name to try during matching Read more
Source§fn chain<A>(self, next: A) -> ChainAdapterwhere
Self: Sized + 'static,
A: ModuleAdapter + 'static,
fn chain<A>(self, next: A) -> ChainAdapterwhere
Self: Sized + 'static,
A: ModuleAdapter + 'static,
Auto Trait Implementations§
impl Freeze for IdentityAdapter
impl RefUnwindSafe for IdentityAdapter
impl Send for IdentityAdapter
impl Sync for IdentityAdapter
impl Unpin for IdentityAdapter
impl UnsafeUnpin for IdentityAdapter
impl UnwindSafe for IdentityAdapter
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