[−][src]Struct tract_tensorflow::ops::nn::s2b::raw::SpaceToBatch
Methods
impl SpaceToBatch
[src]
Trait Implementations
impl Clone for SpaceToBatch
[src]
fn clone(&self) -> SpaceToBatch
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SpaceToBatch
[src]
impl InferenceRulesOp for SpaceToBatch
[src]
fn rules<'r, 'p: 'r, 's: 'r>(
&'s self,
s: &mut Solver<'r>,
inputs: &'p [TensorProxy],
outputs: &'p [TensorProxy]
) -> InferenceResult
[src]
&'s self,
s: &mut Solver<'r>,
inputs: &'p [TensorProxy],
outputs: &'p [TensorProxy]
) -> InferenceResult
Registers the inference rules of the operator.
fn as_op(&self) -> &dyn Op
fn as_op_mut(&mut self) -> &mut dyn Op
fn to_typed(
&self,
_source: &InferenceModel,
node: &InferenceNode,
target: &mut TypedModel,
mapping: &HashMap<OutletId, OutletId>
) -> TractResult<TVec<OutletId>>
[src]
&self,
_source: &InferenceModel,
node: &InferenceNode,
target: &mut TypedModel,
mapping: &HashMap<OutletId, OutletId>
) -> TractResult<TVec<OutletId>>
fn nboutputs(&self) -> Result<usize, TractError>
[src]
fn incorporate(
&self,
model: &ModelImpl<InferenceFact, Box<dyn InferenceOp + 'static>>,
node: &BaseNode<InferenceFact, Box<dyn InferenceOp + 'static>>
) -> Result<Option<ModelPatch<InferenceFact, Box<dyn InferenceOp + 'static>>>, TractError>
[src]
&self,
model: &ModelImpl<InferenceFact, Box<dyn InferenceOp + 'static>>,
node: &BaseNode<InferenceFact, Box<dyn InferenceOp + 'static>>
) -> Result<Option<ModelPatch<InferenceFact, Box<dyn InferenceOp + 'static>>>, TractError>
impl Op for SpaceToBatch
[src]
fn name(&self) -> Cow<str>
[src]
fn as_typed(&self) -> Option<&dyn TypedOp>
fn fuse(
&self,
_model: &ModelImpl<TypedFact, Box<dyn TypedOp + 'static>>,
_node: &BaseNode<TypedFact, Box<dyn TypedOp + 'static>>
) -> Result<Option<ModelPatch<TypedFact, Box<dyn TypedOp + 'static>>>, TractError>
[src]
&self,
_model: &ModelImpl<TypedFact, Box<dyn TypedOp + 'static>>,
_node: &BaseNode<TypedFact, Box<dyn TypedOp + 'static>>
) -> Result<Option<ModelPatch<TypedFact, Box<dyn TypedOp + 'static>>>, TractError>
fn nested_models(
&self
) -> Vec<(Cow<str>, &(dyn Model + 'static), Vec<String>, Vec<String>)>
[src]
&self
) -> Vec<(Cow<str>, &(dyn Model + 'static), Vec<String>, Vec<String>)>
fn validation(&self) -> Validation
[src]
fn same_as(&self, _other: &(dyn Op + 'static)) -> bool
[src]
fn info(&self) -> Result<Vec<String>, TractError>
[src]
fn as_pulsed(&self) -> Option<&(dyn PulsedOp + 'static)>
[src]
fn is_canonic(&self) -> bool
[src]
impl StatelessOp for SpaceToBatch
[src]
Auto Trait Implementations
impl RefUnwindSafe for SpaceToBatch
impl Send for SpaceToBatch
impl Sync for SpaceToBatch
impl Unpin for SpaceToBatch
impl UnwindSafe for SpaceToBatch
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> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
impl<T> From<T> for T
[src]
impl<O> InferenceOp for O where
O: InferenceRulesOp + Op,
[src]
O: InferenceRulesOp + Op,
fn infer_facts(
&mut self,
inputs: SmallVec<[&InferenceFact; 4]>,
outputs: SmallVec<[&InferenceFact; 4]>,
observed: SmallVec<[&InferenceFact; 4]>
) -> Result<(SmallVec<[InferenceFact; 4]>, SmallVec<[InferenceFact; 4]>, SmallVec<[InferenceFact; 4]>), TractError>
[src]
&mut self,
inputs: SmallVec<[&InferenceFact; 4]>,
outputs: SmallVec<[&InferenceFact; 4]>,
observed: SmallVec<[&InferenceFact; 4]>
) -> Result<(SmallVec<[InferenceFact; 4]>, SmallVec<[InferenceFact; 4]>, SmallVec<[InferenceFact; 4]>), TractError>
fn nboutputs(&self) -> Result<usize, TractError>
[src]
fn observe_outlets(
&self,
_model: &ModelImpl<InferenceFact, Box<dyn InferenceOp + 'static>>,
_node: &BaseNode<InferenceFact, Box<dyn InferenceOp + 'static>>
) -> Result<Vec<OutletId>, TractError>
[src]
&self,
_model: &ModelImpl<InferenceFact, Box<dyn InferenceOp + 'static>>,
_node: &BaseNode<InferenceFact, Box<dyn InferenceOp + 'static>>
) -> Result<Vec<OutletId>, TractError>
fn as_op(&self) -> &(dyn Op + 'static)
[src]
fn as_op_mut(&mut self) -> &mut (dyn Op + 'static)
[src]
fn to_typed(
&self,
source: &ModelImpl<InferenceFact, Box<dyn InferenceOp + 'static>>,
node: &BaseNode<InferenceFact, Box<dyn InferenceOp + 'static>>,
target: &mut ModelImpl<TypedFact, Box<dyn TypedOp + 'static>>,
mapping: &HashMap<OutletId, OutletId, RandomState>
) -> Result<SmallVec<[OutletId; 4]>, TractError>
[src]
&self,
source: &ModelImpl<InferenceFact, Box<dyn InferenceOp + 'static>>,
node: &BaseNode<InferenceFact, Box<dyn InferenceOp + 'static>>,
target: &mut ModelImpl<TypedFact, Box<dyn TypedOp + 'static>>,
mapping: &HashMap<OutletId, OutletId, RandomState>
) -> Result<SmallVec<[OutletId; 4]>, TractError>
fn incorporate(
&self,
model: &ModelImpl<InferenceFact, Box<dyn InferenceOp + 'static>>,
node: &BaseNode<InferenceFact, Box<dyn InferenceOp + 'static>>
) -> Result<Option<ModelPatch<InferenceFact, Box<dyn InferenceOp + 'static>>>, TractError>
[src]
&self,
model: &ModelImpl<InferenceFact, Box<dyn InferenceOp + 'static>>,
node: &BaseNode<InferenceFact, Box<dyn InferenceOp + 'static>>
) -> Result<Option<ModelPatch<InferenceFact, Box<dyn InferenceOp + 'static>>>, TractError>
fn infer(
&mut self,
inputs: SmallVec<[&InferenceFact; 4]>,
outputs: SmallVec<[&InferenceFact; 4]>,
observed: SmallVec<[&InferenceFact; 4]>
) -> Result<(SmallVec<[InferenceFact; 4]>, SmallVec<[InferenceFact; 4]>, SmallVec<[InferenceFact; 4]>), TractError>
[src]
&mut self,
inputs: SmallVec<[&InferenceFact; 4]>,
outputs: SmallVec<[&InferenceFact; 4]>,
observed: SmallVec<[&InferenceFact; 4]>
) -> Result<(SmallVec<[InferenceFact; 4]>, SmallVec<[InferenceFact; 4]>, SmallVec<[InferenceFact; 4]>), TractError>
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<O> StatefullOp for O where
O: StatelessOp + Clone,
[src]
O: StatelessOp + Clone,
fn state(
&self,
_session: &mut SessionState,
_node_id: usize
) -> Result<Option<Box<dyn OpState + 'static>>, TractError>
[src]
&self,
_session: &mut SessionState,
_node_id: usize
) -> Result<Option<Box<dyn OpState + 'static>>, TractError>
fn as_stateless(&self) -> Option<&(dyn StatelessOp + 'static)>
[src]
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>,