[−][src]Struct tract_tensorflow::ops::nn::s2b::unary::BatchToSpaceUnary
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]
datum_type: DatumType,
batch_shape: TVec<TDim>,
space_shape: TVec<TDim>,
block_shape: Array1<i32>,
pad: Vec<PaddingStrat>
) -> Self
Constructs a new BatchToSpaceUnary
.
Trait Implementations
impl Clone for BatchToSpaceUnary
[src]
fn clone(&self) -> 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 InferenceRulesOp for BatchToSpaceUnary
[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.
impl Op for BatchToSpaceUnary
[src]
fn name(&self) -> Cow<str>
[src]
fn infer(
&self,
inputs: SmallVec<[&TensorFact; 4]>,
outputs: SmallVec<[&TensorFact; 4]>
) -> Result<(SmallVec<[TensorFact; 4]>, SmallVec<[TensorFact; 4]>), TractError>
[src]
&self,
inputs: SmallVec<[&TensorFact; 4]>,
outputs: SmallVec<[&TensorFact; 4]>
) -> Result<(SmallVec<[TensorFact; 4]>, SmallVec<[TensorFact; 4]>), TractError>
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]
&self,
_model: &Model<TypedTensorInfo>,
_node: &Node<TypedTensorInfo>
) -> Result<Option<ModelPatch<TypedTensorInfo>>, TractError>
fn pulsify(
&self,
_source: &Model<NormalizedTensorInfo>,
_node: &Node<NormalizedTensorInfo>,
_target: &mut Model<PulsedTensorFact>,
_mapping: &HashMap<OutletId, OutletId, RandomState>
) -> Result<SmallVec<[OutletId; 4]>, TractError>
[src]
&self,
_source: &Model<NormalizedTensorInfo>,
_node: &Node<NormalizedTensorInfo>,
_target: &mut Model<PulsedTensorFact>,
_mapping: &HashMap<OutletId, OutletId, RandomState>
) -> Result<SmallVec<[OutletId; 4]>, TractError>
fn codegen(
&self,
_model: &Model<TypedTensorInfo>,
_node: &Node<TypedTensorInfo>
) -> Result<Option<ModelPatch<TypedTensorInfo>>, TractError>
[src]
&self,
_model: &Model<TypedTensorInfo>,
_node: &Node<TypedTensorInfo>
) -> Result<Option<ModelPatch<TypedTensorInfo>>, TractError>
fn cost(
&self,
_inputs: &[&TypedTensorInfo]
) -> Result<SmallVec<[(Cost, TDim); 4]>, TractError>
[src]
&self,
_inputs: &[&TypedTensorInfo]
) -> Result<SmallVec<[(Cost, TDim); 4]>, TractError>
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 BatchToSpaceUnary
[src]
Auto Trait Implementations
impl Send for BatchToSpaceUnary
impl Sync for BatchToSpaceUnary
Blanket Implementations
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<O> InferenceOp for O where
O: InferenceRulesOp,
[src]
O: InferenceRulesOp,
fn infer_facts(
&self,
inputs: SmallVec<[&TensorFact; 4]>,
outputs: SmallVec<[&TensorFact; 4]>
) -> Result<(SmallVec<[TensorFact; 4]>, SmallVec<[TensorFact; 4]>), TractError>
[src]
&self,
inputs: SmallVec<[&TensorFact; 4]>,
outputs: SmallVec<[&TensorFact; 4]>
) -> Result<(SmallVec<[TensorFact; 4]>, SmallVec<[TensorFact; 4]>), TractError>
impl<O> StatefullOp for O where
O: StatelessOp + Clone,
[src]
O: StatelessOp + Clone,
fn state(
&self,
_session: &mut SessionState
) -> Result<Option<Box<dyn OpState + 'static>>, TractError>
[src]
&self,
_session: &mut SessionState
) -> Result<Option<Box<dyn OpState + 'static>>, TractError>
fn as_stateless(&self) -> Option<&(dyn StatelessOp + 'static)>
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> Clone for T where
T: Clone,
[src]
T: Clone,