[−][src]Struct tract_core::model::NormalizedTensorInfo
Tensor information for Normalized models.
Constant value is not allowed, as all tensors in normalized forms are variables.
Fields
datum_type: DatumTypetensor element type
shape: ShapeInfotensor shape
Methods
impl NormalizedTensorInfo[src]
pub fn shape<T, S, E>(shape: S) -> TractResult<NormalizedTensorInfo> where
T: Datum,
S: TryInto<ShapeInfo, Error = E>,
TractError: From<E>, [src]
T: Datum,
S: TryInto<ShapeInfo, Error = E>,
TractError: From<E>,
pub fn dt_shape<S, E>(
datum_type: DatumType,
shape: S
) -> TractResult<NormalizedTensorInfo> where
S: TryInto<ShapeInfo, Error = E>,
TractError: From<E>, [src]
datum_type: DatumType,
shape: S
) -> TractResult<NormalizedTensorInfo> where
S: TryInto<ShapeInfo, Error = E>,
TractError: From<E>,
Trait Implementations
impl Translate<NormalizedTensorInfo, Box<dyn TypedOp + 'static>, PulsedTensorFact, Box<dyn TypedOp + 'static>, usize> for Box<dyn TypedOp>[src]
fn translate(
&self,
source: &NormalizedModel,
node: &NormalizedNode,
target: &mut PulsedModel,
mapping: &HashMap<OutletId, OutletId>,
ctx: &usize
) -> TractResult<TVec<OutletId>>[src]
&self,
source: &NormalizedModel,
node: &NormalizedNode,
target: &mut PulsedModel,
mapping: &HashMap<OutletId, OutletId>,
ctx: &usize
) -> TractResult<TVec<OutletId>>
impl TensorInfo for NormalizedTensorInfo[src]
fn to_tensor_fact(&self) -> TensorFact[src]
impl Clone for NormalizedTensorInfo[src]
fn clone(&self) -> NormalizedTensorInfo[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl PartialEq<NormalizedTensorInfo> for NormalizedTensorInfo[src]
fn eq(&self, other: &NormalizedTensorInfo) -> bool[src]
fn ne(&self, other: &NormalizedTensorInfo) -> bool[src]
impl<'t> From<&'t Tensor> for NormalizedTensorInfo[src]
fn from(t: &'t Tensor) -> NormalizedTensorInfo[src]
impl Debug for NormalizedTensorInfo[src]
impl TryFrom<TypedTensorInfo> for NormalizedTensorInfo[src]
type Error = TractError
The type returned in the event of a conversion error.
fn try_from(fact: TypedTensorInfo) -> TractResult<NormalizedTensorInfo>[src]
impl TryFrom<NormalizedTensorInfo> for TypedTensorInfo[src]
type Error = TractError
The type returned in the event of a conversion error.
fn try_from(fact: NormalizedTensorInfo) -> TractResult<TypedTensorInfo>[src]
Auto Trait Implementations
impl Unpin for NormalizedTensorInfo
impl Sync for NormalizedTensorInfo
impl Send for NormalizedTensorInfo
impl UnwindSafe for NormalizedTensorInfo
impl RefUnwindSafe for NormalizedTensorInfo
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, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for 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>,
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<T> Downcast for T where
T: Any, [src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>[src]
fn as_any(&self) -> &(dyn Any + 'static)[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)[src]
impl<T> Clone for T where
T: Clone, [src]
T: Clone,