[][src]Struct tract_tensorflow::ops::nn::s2b::unary::BatchToSpaceUnary

pub struct BatchToSpaceUnary { /* fields omitted */ }

Methods

impl BatchToSpaceUnary
[src]

pub fn new(
    datum_type: DatumType,
    batch_shape: TVec<TDim>,
    space_shape: TVec<TDim>,
    block_shape: Array1<i32>,
    pad: Vec<PaddingStrat>
) -> Self
[src]

Constructs a new BatchToSpaceUnary.

Trait Implementations

impl Clone for BatchToSpaceUnary
[src]

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

Performs copy-assignment from source. Read more

impl Debug for BatchToSpaceUnary
[src]

impl StatelessOp for BatchToSpaceUnary
[src]

impl Op for BatchToSpaceUnary
[src]

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 reduce(
    &self,
    _inputs: SmallVec<[&TensorFact; 4]>,
    _outputs: SmallVec<[&TensorFact; 4]>,
    _phase: ReductionPhase
) -> Result<Option<ReducedOpRewire>, TractError>
[src]

fn pulsify(
    &self,
    _inputs: SmallVec<[&PulsedTensorFact; 4]>
) -> Result<Vec<PulsifiedOp>, TractError>
[src]

fn const_value(&self) -> Option<SharedTensor>
[src]

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

fn noutputs(&self) -> usize
[src]

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

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

impl InferenceRulesOp for BatchToSpaceUnary
[src]

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

Registers the inference rules of the operator.

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<PB, Tract> ToTract for PB where
    Tract: Tractify<PB>, 
[src]

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

impl<T> Downcast for T where
    T: Any

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