[]Trait tract_tensorflow::prelude::SpecialOps

pub trait SpecialOps<F, O> {
    fn create_dummy(&self) -> O;
fn create_source(&self, fact: F) -> O;
fn is_source(op: &O) -> bool;
fn wire_node(
        &mut self,
        name: impl Into<String>,
        op: impl Into<O>,
        inputs: &[OutletId]
    ) -> Result<SmallVec<[OutletId; 4]>, TractError>; }

Required methods

fn create_dummy(&self) -> O

fn create_source(&self, fact: F) -> O

fn is_source(op: &O) -> bool

fn wire_node(
    &mut self,
    name: impl Into<String>,
    op: impl Into<O>,
    inputs: &[OutletId]
) -> Result<SmallVec<[OutletId; 4]>, TractError>

Loading content...

Implementors

impl SpecialOps<InferenceFact, Box<dyn InferenceOp + 'static>> for Graph<InferenceFact, Box<dyn InferenceOp + 'static>>[src]

impl SpecialOps<TypedFact, Box<dyn TypedOp + 'static>> for Graph<TypedFact, Box<dyn TypedOp + 'static>>

impl SpecialOps<PulsedFact, Box<dyn PulsedOp + 'static>> for Graph<PulsedFact, Box<dyn PulsedOp + 'static>>

Loading content...