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

pub struct SpaceToBatchUnary {
    pub datum_type: DatumType,
    pub space_shape: TVec<TDim>,
    pub batch_shape: TVec<TDim>,
    pub block_shape: Array1<i32>,
    pub pad: TVec<PaddingStrat>,
}

Fields

datum_type: DatumTypespace_shape: TVec<TDim>batch_shape: TVec<TDim>block_shape: Array1<i32>pad: TVec<PaddingStrat>

Methods

impl SpaceToBatchUnary[src]

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

Constructs a new SpaceToBatchUnary.

Trait Implementations

impl Clone for SpaceToBatchUnary[src]

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

Performs copy-assignment from source. Read more

impl Debug for SpaceToBatchUnary[src]

impl InferenceRulesOp for SpaceToBatchUnary[src]

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

Registers the inference rules of the operator.

impl Op for SpaceToBatchUnary[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 pulsify(
    &self,
    _source: &Model<NormalizedTensorInfo>,
    _node: &Node<NormalizedTensorInfo>,
    _target: &mut Model<PulsedTensorFact>,
    _mapping: &HashMap<OutletId, OutletId, RandomState>
) -> Result<SmallVec<[OutletId; 4]>, 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 SpaceToBatchUnary[src]

Auto Trait Implementations

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]