pub struct PulsedFact {
pub datum_type: DatumType,
pub shape: ShapeFact,
pub stream: Option<StreamInfo>,
}
Fields§
§datum_type: DatumType
§shape: ShapeFact
§stream: Option<StreamInfo>
Implementations§
Source§impl PulsedFact
impl PulsedFact
pub fn from_tensor_fact_pulse( tf: &TypedFact, symbol: &Symbol, pulse: &TDim, ) -> TractResult<PulsedFact>
pub fn pulse(&self) -> Option<&TDim>
pub fn to_pulse_fact(&self) -> TypedFact
pub fn streaming_shape(&self) -> TVec<TDim>
pub fn to_streaming_fact(&self) -> TypedFact
Trait Implementations§
Source§impl Clone for PulsedFact
impl Clone for PulsedFact
Source§fn clone(&self) -> PulsedFact
fn clone(&self) -> PulsedFact
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PulsedFact
impl Debug for PulsedFact
Source§impl Fact for PulsedFact
impl Fact for PulsedFact
fn to_typed_fact(&self) -> TractResult<Cow<'_, TypedFact>>
fn same_as(&self, other: &dyn Fact) -> bool
Source§fn compatible_with(&self, other: &dyn Fact) -> bool
fn compatible_with(&self, other: &dyn Fact) -> bool
Ensure that self is same type as another fact or a subtype
fn datum_type(&self) -> Option<DatumType>
fn matches( &self, t: &Tensor, symbols: Option<&SymbolValues>, ) -> Result<bool, Error>
Source§impl<'a> From<&'a PulsedFact> for TypedFact
impl<'a> From<&'a PulsedFact> for TypedFact
Source§fn from(fact: &'a PulsedFact) -> TypedFact
fn from(fact: &'a PulsedFact) -> TypedFact
Converts to this type from the input type.
Source§impl From<PulsedFact> for TypedFact
impl From<PulsedFact> for TypedFact
Source§fn from(fact: PulsedFact) -> TypedFact
fn from(fact: PulsedFact) -> TypedFact
Converts to this type from the input type.
Source§impl Hash for PulsedFact
impl Hash for PulsedFact
Source§impl PartialEq for PulsedFact
impl PartialEq for PulsedFact
Source§impl SpecialOps<PulsedFact, Box<dyn PulsedOp>> for PulsedModel
impl SpecialOps<PulsedFact, Box<dyn PulsedOp>> for PulsedModel
fn is_source(op: &Box<dyn PulsedOp>) -> bool
fn create_source(&self, fact: PulsedFact) -> Box<dyn PulsedOp>
fn create_dummy(&self) -> Box<dyn PulsedOp>
fn wire_node( &mut self, name: impl Into<String>, op: impl Into<Box<dyn PulsedOp>>, inputs: &[OutletId], ) -> TractResult<TVec<OutletId>>
fn add_const( &mut self, name: impl Into<String>, v: impl IntoArcTensor, ) -> TractResult<OutletId>
impl Eq for PulsedFact
impl StructuralPartialEq for PulsedFact
Auto Trait Implementations§
impl Freeze for PulsedFact
impl !RefUnwindSafe for PulsedFact
impl Send for PulsedFact
impl Sync for PulsedFact
impl Unpin for PulsedFact
impl !UnwindSafe for PulsedFact
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more