pub enum DeepLayerSpec {
Show 16 variants
Input {
dimensions: usize,
},
Embed {
embedding: Vec<f64>,
},
Dense {
weights: Vec<f64>,
bias: Vec<f64>,
output_channels: usize,
input_channels: usize,
},
Flatten,
GlobalPool {
method: PoolMethodSpec,
},
Softmax,
BatchNorm {
epsilon: f64,
},
Dropout {
p: f64,
},
CNN1D {
weights: Vec<f64>,
bias: Vec<f64>,
output_channels: usize,
input_channels: usize,
kernel_size: usize,
stride: usize,
padding: usize,
},
CNN2D {
weights: Vec<f64>,
bias: Vec<f64>,
output_channels: usize,
input_channels: usize,
input_height: usize,
input_width: usize,
kernel_height: usize,
kernel_width: usize,
stride_height: usize,
stride_width: usize,
padding_height: usize,
padding_width: usize,
},
Propagate {
edge_label: String,
aggregation: AggregationSpec,
direction: DirectionSpec,
},
Conv {
edge_label: String,
hop_weights: Vec<f64>,
direction: DirectionSpec,
},
Pool {
edge_label: String,
pool_size: usize,
method: PoolKindSpec,
direction: DirectionSpec,
},
Attention,
RNN {
weights_input: Vec<f64>,
weights_hidden: Vec<f64>,
bias: Vec<f64>,
hidden_channels: usize,
input_channels: usize,
return_sequences: bool,
},
LSTM {
weights_input: Vec<f64>,
weights_hidden: Vec<f64>,
bias: Vec<f64>,
hidden_channels: usize,
input_channels: usize,
return_sequences: bool,
},
}Variants§
Input
Runtime feature-vector input. Used by trained models and batched feature inference.
Embed
Dense
Flatten
GlobalPool
Fields
§
method: PoolMethodSpecSoftmax
BatchNorm
Dropout
CNN1D
Fields
CNN2D
Fields
Propagate
Conv
Pool
Attention
RNN
LSTM
Trait Implementations§
Source§impl Clone for DeepLayerSpec
impl Clone for DeepLayerSpec
Source§fn clone(&self) -> DeepLayerSpec
fn clone(&self) -> DeepLayerSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeepLayerSpec
impl Debug for DeepLayerSpec
Source§impl<'de> Deserialize<'de> for DeepLayerSpec
impl<'de> Deserialize<'de> for DeepLayerSpec
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 PartialEq for DeepLayerSpec
impl PartialEq for DeepLayerSpec
Source§impl Serialize for DeepLayerSpec
impl Serialize for DeepLayerSpec
impl StructuralPartialEq for DeepLayerSpec
Auto Trait Implementations§
impl Freeze for DeepLayerSpec
impl RefUnwindSafe for DeepLayerSpec
impl Send for DeepLayerSpec
impl Sync for DeepLayerSpec
impl Unpin for DeepLayerSpec
impl UnsafeUnpin for DeepLayerSpec
impl UnwindSafe for DeepLayerSpec
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