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
Auto Trait Implementations§
impl Freeze for ModelLayer
impl RefUnwindSafe for ModelLayer
impl Send for ModelLayer
impl Sync for ModelLayer
impl Unpin for ModelLayer
impl UnsafeUnpin 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