pub struct ParameterSpec {
pub name: String,
pub shape: Vec<i64>,
pub dtype: DataType,
pub trainable: bool,
pub initialization: InitializationStrategy,
pub metadata: HashMap<String, Value>,
}Expand description
Parameter specification
Fields§
§name: StringParameter name
shape: Vec<i64>Parameter shape
dtype: DataTypeData type
trainable: boolWhether parameter is trainable
initialization: InitializationStrategyInitialization strategy
metadata: HashMap<String, Value>Additional parameter metadata
Trait Implementations§
Source§impl Clone for ParameterSpec
impl Clone for ParameterSpec
Source§fn clone(&self) -> ParameterSpec
fn clone(&self) -> ParameterSpec
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 ParameterSpec
impl Debug for ParameterSpec
Source§impl<'de> Deserialize<'de> for ParameterSpec
impl<'de> Deserialize<'de> for ParameterSpec
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 ParameterSpec
impl RefUnwindSafe for ParameterSpec
impl Send for ParameterSpec
impl Sync for ParameterSpec
impl Unpin for ParameterSpec
impl UnsafeUnpin for ParameterSpec
impl UnwindSafe for ParameterSpec
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