[][src]Struct darknet_sys::network

#[repr(C)]pub struct network {
    pub n: c_int,
    pub batch: c_int,
    pub seen: *mut usize,
    pub t: *mut c_int,
    pub epoch: f32,
    pub subdivisions: c_int,
    pub layers: *mut layer,
    pub output: *mut f32,
    pub policy: learning_rate_policy,
    pub learning_rate: f32,
    pub momentum: f32,
    pub decay: f32,
    pub gamma: f32,
    pub scale: f32,
    pub power: f32,
    pub time_steps: c_int,
    pub step: c_int,
    pub max_batches: c_int,
    pub scales: *mut f32,
    pub steps: *mut c_int,
    pub num_steps: c_int,
    pub burn_in: c_int,
    pub adam: c_int,
    pub B1: f32,
    pub B2: f32,
    pub eps: f32,
    pub inputs: c_int,
    pub outputs: c_int,
    pub truths: c_int,
    pub notruth: c_int,
    pub h: c_int,
    pub w: c_int,
    pub c: c_int,
    pub max_crop: c_int,
    pub min_crop: c_int,
    pub max_ratio: f32,
    pub min_ratio: f32,
    pub center: c_int,
    pub angle: f32,
    pub aspect: f32,
    pub exposure: f32,
    pub saturation: f32,
    pub hue: f32,
    pub random: c_int,
    pub gpu_index: c_int,
    pub hierarchy: *mut tree,
    pub input: *mut f32,
    pub truth: *mut f32,
    pub delta: *mut f32,
    pub workspace: *mut f32,
    pub train: c_int,
    pub index: c_int,
    pub cost: *mut f32,
    pub clip: f32,
}

Fields

n: c_intbatch: c_intseen: *mut usizet: *mut c_intepoch: f32subdivisions: c_intlayers: *mut layeroutput: *mut f32policy: learning_rate_policylearning_rate: f32momentum: f32decay: f32gamma: f32scale: f32power: f32time_steps: c_intstep: c_intmax_batches: c_intscales: *mut f32steps: *mut c_intnum_steps: c_intburn_in: c_intadam: c_intB1: f32B2: f32eps: f32inputs: c_intoutputs: c_inttruths: c_intnotruth: c_inth: c_intw: c_intc: c_intmax_crop: c_intmin_crop: c_intmax_ratio: f32min_ratio: f32center: c_intangle: f32aspect: f32exposure: f32saturation: f32hue: f32random: c_intgpu_index: c_inthierarchy: *mut treeinput: *mut f32truth: *mut f32delta: *mut f32workspace: *mut f32train: c_intindex: c_intcost: *mut f32clip: f32

Trait Implementations

impl Clone for network[src]

impl Copy for network[src]

impl Debug for network[src]

Auto Trait Implementations

impl RefUnwindSafe for network

impl !Send for network

impl !Sync for network

impl Unpin for network

impl UnwindSafe for network

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.