Type Definition tract_hir::infer::InferenceModel[][src]

pub type InferenceModel = Graph<InferenceFact, Box<dyn InferenceOp>>;
Expand description

A model with partially types and shapes, as produced by parsing ONNX or Tensorflow graphs.

Trait Implementations

Analyse all nodes of the graph.

Will stop on first error unless obstinate is true.

Perform early transformation before going typed.

List OutletId with incomplete type information.

Will stop on first error unless obstinate is true.

Eliminate seemingly dead branches of the graph.

This may break stateful networks.

Attempt full analyse and conversion to TypedModel.

Attempt full analyse, decluttering and mapping to optimized operations.

This is meant for “simple” networks, where no special model transformation needs to happen. Aternaltively, use to_typed() and manipulate the TypedModel for more control.