pub struct ModelLayer {
pub layer_type: String,
pub parameters: Vec<Tensor>,
}Expand description
A model layer with parameters.
Fields§
§layer_type: StringLayer type (e.g., “dense”, “conv2d”, “attention”)
parameters: Vec<Tensor>Layer parameters (weights, biases)
Trait Implementations§
Source§impl Clone for ModelLayer
impl Clone for ModelLayer
Source§fn clone(&self) -> ModelLayer
fn clone(&self) -> ModelLayer
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 moreAuto Trait Implementations§
impl Freeze for ModelLayer
impl RefUnwindSafe for ModelLayer
impl Send for ModelLayer
impl Sync for ModelLayer
impl Unpin for ModelLayer
impl UnwindSafe for ModelLayer
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