[−][src]Module tract_hir::prelude
Re-exports
pub use super::framework::Framework; |
pub use crate::infer::InferenceModel; |
Modules
compact | |
dsl | |
order | Evaluation order for nodes. |
tract_itertools | Extra iterator adaptors, functions and macros. |
tract_linalg | |
tract_ndarray | The |
tract_num_traits | Numeric traits for generic mathematics |
translator |
Macros
tvec |
Structs
Arc | A thread-safe reference-counting pointer. 'Arc' stands for 'Atomically Reference Counted'. |
BaseNode | A Node in an Model. |
Blob | |
InferenceFact | Partial information about a tensor. |
InletId | Identifier for a node input in the graph. |
ModelImpl | Main model class |
ModelPatch | A change to apply to a model. |
NormalizedFact | Tensor information for Normalized models. |
OutletFact | Information for each outlet of a node |
OutletId | Identifier for a node output in the graph. |
ShapeFact | Fully determined dimension of a tensor. |
SimplePlan | |
SimpleState | |
StreamFact | Streaming information for a streamed tensor. |
Tensor | Tensor is a concrete tensor in tract. |
TractError | The Error type. |
TypedFact | Fully determined tensor information for TypedModel. |
Enums
DatumType | |
TDim | |
TractErrorKind | The kind of an error. |
Traits
Datum | |
Fact | Type information about a tensor: shape, and element type, in various state of determination. |
InferenceModelExt | |
IntoArcTensor | Convenient conversion to Arc |
IntoTensor | Convenient conversion to Tensor. |
Model | Common methods for all variants of model. |
ModelDsl | Extensions on ModelImpl to explore and build graph models more easily. |
ModelDslConst | Extension to add constants to model that tolerates them. |
ModelSpecialOps | |
ModelWireNode | |
Op | A base operation |
TractResultExt | Additional methods for |
TypedOp |
Functions
arr4 | |
eval_order | Find an evaluation order for a model, using its default inputs and outputs as boundaries. |
rctensor0 | |
rctensor1 | |
rctensor2 | |
rctensor3 | |
rctensor4 | |
tensor0 | |
tensor1 | |
tensor2 | |
tensor3 | |
tensor4 |
Type Definitions
Node | |
NormalizedModel | A model with determined types and shapes, where constant have been eliminated from the graph. |
NormalizedModelPatch | A ModelPatch for NormalizedModel. |
NormalizedNode | A Node for NormalizedModel. |
NormalizedSimplePlan | An execution plan for NormalizedModel. |
NormalizedSimpleState | An execution state for TypedModel. |
RunnableModel | A runnable model with fixed inputs and outputs. |
TVec | A Smallvec instantiation with 4 embeddable values. |
TractResult | Convenient wrapper around |
TypedModel | A model with completely determined types and shapes. |
TypedModelPatch | A ModelPatch for TypedModel. |
TypedNode | Node for TypedModel graph |
TypedSimplePlan | An execution plan for TypedModel. |
TypedSimpleState | An execution state for TypedModel. |