[−][src]Trait tract_core::model::dsl::ModelDslConst
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>
&mut self,
name: impl Into<String>,
v: impl IntoArcTensor
) -> TractResult<OutletId>
Add a constant node to the graph.
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]
F: Fact + Clone + 'static + From<Arc<Tensor>>,
O: Debug + Display + From<Const> + AsRef<dyn Op> + AsMut<dyn Op> + Clone + 'static,
fn add_const(
&mut self,
name: impl Into<String>,
v: impl IntoArcTensor
) -> TractResult<OutletId>
[src]
&mut self,
name: impl Into<String>,
v: impl IntoArcTensor
) -> TractResult<OutletId>