[][src]Enum nasbench::Op

pub enum Op {
    Input,
    Conv1x1,
    Conv3x3,
    MaxPool3x3,
    Output,
}

Operation.

Examples

use nasbench::Op;

assert_eq!("input".parse().ok(), Some(Op::Input));
assert_eq!("conv1x1-bn-relu".parse().ok(), Some(Op::Conv1x1));
assert_eq!("conv3x3-bn-relu".parse().ok(), Some(Op::Conv3x3));
assert_eq!("maxpool3x3".parse().ok(), Some(Op::MaxPool3x3));
assert_eq!("output".parse().ok(), Some(Op::Output));

Variants

Input

Input tensor.

Conv1x1

1x1 convolution -> batch-norm -> ReLU.

Conv3x3

3x3 convolution -> batch-norm -> ReLU.

MaxPool3x3

3x3 max-pool.

Output

Output tensor.

Trait Implementations

impl Clone for Op[src]

impl Copy for Op[src]

impl Debug for Op[src]

impl Eq for Op[src]

impl FromStr for Op[src]

type Err = Failure

The associated error which can be returned from parsing.

impl Hash for Op[src]

impl PartialEq<Op> for Op[src]

impl StructuralEq for Op[src]

impl StructuralPartialEq for Op[src]

Auto Trait Implementations

impl RefUnwindSafe for Op

impl Send for Op

impl Sync for Op

impl Unpin for Op

impl UnwindSafe for Op

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.