pub struct DeepPolyLayer {
pub neurons: Vec<DeepPolyNeuron>,
}Expand description
A full DeepPoly abstract element for one layer.
Fields§
§neurons: Vec<DeepPolyNeuron>Neurons in this layer
Implementations§
Source§impl DeepPolyLayer
impl DeepPolyLayer
Sourcepub fn input_layer(lower: &[f64], upper: &[f64]) -> Self
pub fn input_layer(lower: &[f64], upper: &[f64]) -> Self
Create from interval bounds on neurons (input layer).
Sourcepub fn affine(&self, weights: &[Vec<f64>], bias: &[f64]) -> Self
pub fn affine(&self, weights: &[Vec<f64>], bias: &[f64]) -> Self
Apply an affine layer W * x + b to produce a new abstract layer.
Sourcepub fn concrete_lower(&self) -> Vec<f64>
pub fn concrete_lower(&self) -> Vec<f64>
Get the concrete lower bound on all neurons.
Sourcepub fn concrete_upper(&self) -> Vec<f64>
pub fn concrete_upper(&self) -> Vec<f64>
Get the concrete upper bound on all neurons.
Auto Trait Implementations§
impl Freeze for DeepPolyLayer
impl RefUnwindSafe for DeepPolyLayer
impl Send for DeepPolyLayer
impl Sync for DeepPolyLayer
impl Unpin for DeepPolyLayer
impl UnsafeUnpin for DeepPolyLayer
impl UnwindSafe for DeepPolyLayer
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