pub struct LayerDefinition {
pub name: String,
pub layer_type: String,
pub inputs: Vec<TensorSpec>,
pub outputs: Vec<TensorSpec>,
pub parameters: Vec<String>,
pub config: HashMap<String, Value>,
}Expand description
Layer definition
Fields§
§name: StringLayer name
layer_type: StringLayer type
inputs: Vec<TensorSpec>Input specifications
outputs: Vec<TensorSpec>Output specifications
parameters: Vec<String>Layer parameters
config: HashMap<String, Value>Layer configuration
Trait Implementations§
Source§impl Clone for LayerDefinition
impl Clone for LayerDefinition
Source§fn clone(&self) -> LayerDefinition
fn clone(&self) -> LayerDefinition
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 LayerDefinition
impl Debug for LayerDefinition
Source§impl<'de> Deserialize<'de> for LayerDefinition
impl<'de> Deserialize<'de> for LayerDefinition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LayerDefinition
impl RefUnwindSafe for LayerDefinition
impl Send for LayerDefinition
impl Sync for LayerDefinition
impl Unpin for LayerDefinition
impl UnsafeUnpin for LayerDefinition
impl UnwindSafe for LayerDefinition
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