pub struct IdentityAdapter;Expand description
Identity adapter that passes tensors through unchanged
Trait Implementations§
Source§impl Clone for IdentityAdapter
impl Clone for IdentityAdapter
Source§fn clone(&self) -> IdentityAdapter
fn clone(&self) -> IdentityAdapter
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 Debug for IdentityAdapter
impl Debug for IdentityAdapter
Source§impl Default for IdentityAdapter
impl Default for IdentityAdapter
Source§fn default() -> IdentityAdapter
fn default() -> IdentityAdapter
Returns the “default value” for a type. Read more
Source§impl ModuleAdapter for IdentityAdapter
impl ModuleAdapter for IdentityAdapter
Source§fn adapt(&self, snapshot: &TensorSnapshot) -> TensorSnapshot
fn adapt(&self, snapshot: &TensorSnapshot) -> TensorSnapshot
Adapt a tensor snapshot based on its container type and parameter name
Source§fn clone_box(&self) -> Box<dyn ModuleAdapter>
fn clone_box(&self) -> Box<dyn ModuleAdapter>
Clone the adapter into a boxed trait object
Auto Trait Implementations§
impl Freeze for IdentityAdapter
impl RefUnwindSafe for IdentityAdapter
impl Send for IdentityAdapter
impl Sync for IdentityAdapter
impl Unpin 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