[]Struct tract_tensorflow::ops::nn::Relu6

pub struct Relu6(_);

Methods

impl Relu6

pub fn new(f0: TypeFact) -> Self

Constructs a new Relu6.

Trait Implementations

impl Default for Relu6

impl Clone for Relu6

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Relu6

impl InferenceRulesOp for Relu6

fn rules<'r, 'p: 'r, 's: 'r>(
    &'s self,
    s: &mut Solver<'r>,
    inputs: &'p [TensorProxy],
    outputs: &'p [TensorProxy]
) -> InferenceResult

Infers properties about the input and output tensors.

impl Op for Relu6

fn infer(
    &self,
    inputs: SmallVec<[&TensorFact; 4]>,
    outputs: SmallVec<[&TensorFact; 4]>
) -> Result<(SmallVec<[TensorFact; 4]>, SmallVec<[TensorFact; 4]>), TractError>
[src]

Infers properties about the input and output tensors. Read more

fn declutter(
    &self,
    _model: &Model<TypedTensorInfo>,
    _node: &Node<TypedTensorInfo>
) -> Result<Option<ModelPatch<TypedTensorInfo>>, TractError>
[src]

fn codegen(
    &self,
    _model: &Model<TypedTensorInfo>,
    _node: &Node<TypedTensorInfo>
) -> Result<Option<ModelPatch<TypedTensorInfo>>, TractError>
[src]

fn cost(
    &self,
    _inputs: &[&TypedTensorInfo]
) -> Result<SmallVec<[(Cost, TDim); 4]>, TractError>
[src]

fn rounding_errors(&self) -> bool[src]

fn same_as(&self, _other: &(dyn Op + 'static)) -> bool[src]

fn info(&self) -> Result<Option<String>, TractError>[src]

impl StatelessOp for Relu6

Auto Trait Implementations

impl Send for Relu6

impl Sync for Relu6

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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

impl<O> InferenceOp for O where
    O: InferenceRulesOp
[src]

impl<O> StatefullOp for O where
    O: StatelessOp + Clone
[src]

impl<T> Downcast for T where
    T: Any

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