[−][src]Enum nasbench::Op
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 tensor.
1x1 convolution -> batch-norm -> ReLU.
3x3 convolution -> batch-norm -> ReLU.
3x3 max-pool.
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.
fn from_str(op: &str) -> Result<Self>
[src]
impl Hash for Op
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Op> for Op
[src]
impl StructuralEq for Op
[src]
impl StructuralPartialEq for Op
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,