pub struct LatentNetworkRecordItem<M, S: PrecisionSettings>where
M: Module + ModuleDisplay + Module,{
pub in_proj: <<Linear as Module>::Record as Record>::Item<S>,
pub layers: <<Layers<M> as Module>::Record as Record>::Item<S>,
pub out_proj: <<Linear as Module>::Record as Record>::Item<S>,
pub class_tokens: <EmptyRecord as Record>::Item<S>,
pub class_tokens_emb: <<Option<Param<Tensor<2>>> as Module>::Record as Record>::Item<S>,
}Expand description
The record item type for the module.
Fields§
§in_proj: <<Linear as Module>::Record as Record>::Item<S>Field to be serialized.
layers: <<Layers<M> as Module>::Record as Record>::Item<S>Field to be serialized.
out_proj: <<Linear as Module>::Record as Record>::Item<S>Field to be serialized.
class_tokens: <EmptyRecord as Record>::Item<S>Field to be serialized.
class_tokens_emb: <<Option<Param<Tensor<2>>> as Module>::Record as Record>::Item<S>Field to be serialized.
Trait Implementations§
Source§impl<M, S: PrecisionSettings> Clone for LatentNetworkRecordItem<M, S>
impl<M, S: PrecisionSettings> Clone for LatentNetworkRecordItem<M, S>
Source§impl<'de, M, S: PrecisionSettings> Deserialize<'de> for LatentNetworkRecordItem<M, S>where
M: Module + ModuleDisplay + Module,
<<Linear as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<Layers<M> as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<EmptyRecord as Record>::Item<S>: Serialize + DeserializeOwned,
<<Option<Param<Tensor<2>>> as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
impl<'de, M, S: PrecisionSettings> Deserialize<'de> for LatentNetworkRecordItem<M, S>where
M: Module + ModuleDisplay + Module,
<<Linear as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<Layers<M> as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<EmptyRecord as Record>::Item<S>: Serialize + DeserializeOwned,
<<Option<Param<Tensor<2>>> as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
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
Source§impl<M, S: PrecisionSettings> Serialize for LatentNetworkRecordItem<M, S>where
M: Module + ModuleDisplay + Module,
<<Linear as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<Layers<M> as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<EmptyRecord as Record>::Item<S>: Serialize + DeserializeOwned,
<<Option<Param<Tensor<2>>> as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
impl<M, S: PrecisionSettings> Serialize for LatentNetworkRecordItem<M, S>where
M: Module + ModuleDisplay + Module,
<<Linear as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<Layers<M> as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<EmptyRecord as Record>::Item<S>: Serialize + DeserializeOwned,
<<Option<Param<Tensor<2>>> as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
Auto Trait Implementations§
impl<M, S> !RefUnwindSafe for LatentNetworkRecordItem<M, S>
impl<M, S> !UnwindSafe for LatentNetworkRecordItem<M, S>
impl<M, S> Freeze for LatentNetworkRecordItem<M, S>
impl<M, S> Send for LatentNetworkRecordItem<M, S>where
<<M as Module>::Record as Record>::Item<S>: Send,
impl<M, S> Sync for LatentNetworkRecordItem<M, S>where
<<M as Module>::Record as Record>::Item<S>: Sync,
impl<M, S> Unpin for LatentNetworkRecordItem<M, S>
impl<M, S> UnsafeUnpin for LatentNetworkRecordItem<M, S>
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