Module prelude

Source
Expand description

This prelude is meant for code using tract.

Macros§

dispatch_copy
dispatch_copy_by_size
dispatch_datum
dispatch_datum_by_size
dispatch_floatlike
dispatch_hash
dispatch_numbers
dispatch_signed
tvec

Structs§

Arc
A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
Blob
Graph
Main model class
InletId
Identifier for a node input in the graph.
ModelPatch
A change to apply to a model.
Node
A Node in an Model.
Opaque
Outlet
Information for each outlet of a node
OutletId
Identifier for a node output in the graph.
PlanOptions
Rewriter
ShapeFact
SimplePlan
SimpleState
Symbol
SymbolScope
SymbolValues
Tensor
Tensor is a concrete tensor in tract.
TypedFact
Fully determined tensor information for TypedModel.
f16
A 16-bit floating point type implementing the IEEE 754-2008 standard binary16 a.k.a “half” format.

Enums§

DatumType
QParams
TDim
TValue

Traits§

Datum
DatumExt
DatumTypeExt
Fact
Type information about a tensor: shape, and element type, in various state of determination.
Framework
A Framework that translate its model to tract core model.
IntoArcTensor
Convenient conversion to Arc.
IntoTValue
IntoTensor
Convenient conversion to Tensor.
Op
A base operation
SpecialOps
ToDim
Convenience trait to convert values to TDim.
TypedOp

Functions§

arr4
natural_strides
rctensor0
rctensor1
rctensor2
rctensor3
rctensor4
round_ties_to_even
tensor0
tensor1
tensor2
tensor3
tensor4

Type Aliases§

RunnableModel
A runnable model with fixed inputs and outputs.
TVec
A Smallvec instantiation with 4 embeddable values.
TractError
TractResult
TypedFrozenSimpleState
An execution state for TypedModel, frozen (and Send).
TypedModel
A model with completely determined types and shapes.
TypedModelPatch
A ModelPatch for TypedModel.
TypedNode
Node for TypedModel graph
TypedRunnableModel
A runnable TypedModel (new name for SimplePlan).
TypedSimplePlan
An execution plan for TypedModel.
TypedSimpleState
An execution state for TypedModel.