Modules§
- memory
- order
- Evaluation order for nodes.
- tract_
data - tract_
downcast_ rs - Build status Latest version Documentation
- tract_
linalg - tract_
ndarray - The
ndarray
crate provides an n-dimensional container for general elements and for numerics. - tract_
num_ traits - Numeric traits for generic mathematics
- translator
- typed
Macros§
- anyhow
- Construct an ad-hoc error from a string or existing non-
anyhow
error value. - args_1
- args_2
- args_3
- args_4
- args_5
- args_6
- args_7
- args_8
- as_op
- bail
- Return early with an error.
- bin_
to_ super_ type - dims
- dispatch_
copy - dispatch_
copy_ by_ size - dispatch_
datum - dispatch_
datum_ by_ size - dispatch_
floatlike - dispatch_
hash - dispatch_
numbers - dispatch_
signed - element_
wise - element_
wise_ oop - ensure
- Return early with an error if a condition is not satisfied.
- format_
err - Construct an ad-hoc error from a string or existing non-
anyhow
error value. - impl_
op_ same_ as - not_
a_ typed_ op - op_
as_ typed_ op - tvec
Structs§
- Arc
- A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
- Axes
Mapping - Axis
- Axis
Change - Axis
Change Consequence - Base
Data Shape - Blob
- Default
Runtime - Graph
- Main model class
- Hard
Swish - HashMap
- A hash map implemented with quadratic probing and SIMD lookup.
- InletId
- Identifier for a node input in the graph.
- Into
Shape - Leaky
Relu - Model
Patch - A change to apply to a model.
- Node
- A Node in an Model.
- Opaque
- Outlet
- Information for each outlet of a node
- Outlet
Id - Identifier for a node output in the graph.
- Phantom
Data - Zero-sized type used to mark things that “act like” they own a
T
. - Plan
Options - Reduce
- Rewriter
- Session
State - Shape
Fact - Sigmoid
- Simple
Plan - Simple
State - Softmax
- Symbol
- Symbol
Scope - Symbol
Values - Tensor
- Tensor is a concrete tensor in tract.
- Tensor
View - Typed
Fact - 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§
- Approximation
- AxisOp
- Cost
- Cow
- A clone-on-write smart pointer.
- Data
Format - Datum
Type - Geometry
Bound - InOut
- QParams
- Reducer
- Softmax
Exp - TDim
- TValue
- Validation
- Level of precision to be expected in implementations comparisons.
Traits§
- Clamp
Cast - Datum
- Datum
Ext - Datum
Type Ext - DimLike
- A super-trait for value acting as tensor dimensions in tract.
- Element
Wise Mini Op - EvalOp
- 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.
- Frozen
OpState - Hash
- A hashable type.
- Into
ArcTensor - Convenient conversion to Arc
. - IntoT
Value - Into
Tensor - Convenient conversion to Tensor.
- Op
- A base operation
- OpState
- Opaque
Fact - Opaque
Payload - Resolve
To - Runnable
- Runtime
- Session
State Handler - Special
Ops - State
- ToDim
- Convenience trait to convert values to TDim.
- Tract
Error Context - Provides the
context
method forResult
. - TypedOp
Functions§
- arr4
- compute_
shape_ with_ tf_ rules - expand_
mean_ of_ squares - hard_
swish - leaky_
relu - natural_
strides - parse_
tdim - perm_
to_ ops - rctensor0
- rctensor1
- rctensor2
- rctensor3
- rctensor4
- round_
ties_ to_ even - sigmoid
- solve_
for - tensor0
- tensor1
- tensor2
- tensor3
- tensor4
- to_
axis_ ops_ with_ tf_ rules - vector_
size - wire_
rank_ broadcast - wire_
with_ rank_ broadcast
Type Aliases§
- Data
Shape - Runnable
Model - A runnable model with fixed inputs and outputs.
- SymData
Shape - TVec
- A Smallvec instantiation with 4 embeddable values.
- Tract
Error - Tract
Result - Typed
Frozen Simple State - An execution state for TypedModel, frozen (and Send).
- Typed
Model - A model with completely determined types and shapes.
- Typed
Model Patch - A ModelPatch for TypedModel.
- Typed
Node - Node for TypedModel graph
- Typed
Runnable Model - A runnable TypedModel (new name for SimplePlan).
- Typed
Simple Plan - An execution plan for TypedModel.
- Typed
Simple State - An execution state for TypedModel.
Derive Macros§
- Hash
- Derive macro generating an impl of the trait
Hash
.