[][src]Trait tract_core::model::dsl::ModelDslConst

pub trait ModelDslConst {
    fn add_const(
        &mut self,
        name: impl Into<String>,
        v: impl IntoArcTensor
    ) -> TractResult<OutletId>; }

Extension to add constants to model that tolerates them.

Required methods

fn add_const(
    &mut self,
    name: impl Into<String>,
    v: impl IntoArcTensor
) -> TractResult<OutletId>

Add a constant node to the graph.

Loading content...

Implementors

impl<F: Fact + Clone + 'static, O> ModelDslConst for ModelImpl<F, O> where
    F: Fact + Clone + 'static + From<Arc<Tensor>>,
    O: Debug + Display + From<Const> + AsRef<dyn Op> + AsMut<dyn Op> + Clone + 'static, 
[src]

Loading content...