Struct tract_pulse::fact::PulsedFact
source · 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<PulsedFact> for PulsedFact
impl PartialEq<PulsedFact> for PulsedFact
source§fn eq(&self, other: &PulsedFact) -> bool
fn eq(&self, other: &PulsedFact) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SpecialOps<PulsedFact, Box<dyn PulsedOp + 'static, Global>> for PulsedModel
impl SpecialOps<PulsedFact, Box<dyn PulsedOp + 'static, Global>> 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>>
impl Eq for PulsedFact
impl StructuralEq for PulsedFact
impl StructuralPartialEq for PulsedFact
Auto Trait Implementations§
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
source§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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 + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
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.