Enum drug::GlobalPool

source ·
pub enum GlobalPool {
    Average,
}
Expand description

Type of pooling operation (currently there is only average pooling). TODO enum max pool, avg pool, sum pool, min pool Implements Operation. See Node constructor for full description.

Variants§

§

Average

Reduces by taking the arithmetic mean

Trait Implementations§

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Mutates Outputs based on inputs. TODO consider modifying output ArrayD in place Read more
Returns gradients of inputs wrt outputs. Note the inputs and output vectors should be the same length. TODO consider modifying output ArrayDs in place Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.