Re-exports§
pub use crate::fact::PulsedFact;
pub use crate::model::PulsedModel;
pub use crate::model::PulsedModelExt;
pub use crate::ops::OpPulsifier;
pub use crate::ops::PulsedOp;
pub use tract_pulse_opl::tract_nnef;
Modules§
- fmt
- Utilities for formatting and printing
String
s. - tract_
core - Tract
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 - Blob
- DatLoader
- Default
Runtime - DocDumper
- Fragment
Decl - Fragment
Def - Graph
- Main model class
- Graph
Nnef Loader - Graph
Quant Loader - HashMap
- A hash map implemented with quadratic probing and SIMD lookup.
- Identifier
- InletId
- Identifier for a node input in the graph.
- IntoAst
- Into
Shape - Model
Builder - Model
Patch - A change to apply to a model.
- Nnef
- 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.
- Parameter
- Phantom
Data - Zero-sized type used to mark things that “act like” they own a
T
. - Plan
Options - Primitive
Decl - Registry
- Resolved
Invocation - Rewriter
- Session
State - Shape
Fact - Simple
Plan - Simple
State - Symbol
- Symbol
Scope - Symbol
Values - Tensor
- Tensor is a concrete tensor in tract.
- Tensor
View - TypeId
- A
TypeId
represents a globally unique identifier for a type. - Typed
Fact - Fully determined tensor information for TypedModel.
- Typed
Model Loader - Typed
Model Resource - 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.
- Datum
Type - Geometry
Bound - InOut
- QParams
- RValue
- TDim
- TValue
- Type
Name - Validation
- Level of precision to be expected in implementations comparisons.
- Value
Traits§
- Clamp
Cast - Datum
- Datum
Ext - Datum
Type Ext - DimLike
- A super-trait for value acting as tensor dimensions in tract.
- Downcast
- Supports conversion to
Any
. Traits to be extended byimpl_downcast!
must extendDowncast
. - 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 - Resource
- Resource
Loader - 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 - invocation
- logical
- multi_
rank_ broadcast - natural_
strides - numeric
- param
- parse_
parameters - parse_
tdim - perm_
to_ ops - rctensor0
- rctensor1
- rctensor2
- rctensor3
- rctensor4
- round_
ties_ to_ even - solve_
for - string
- tensor0
- tensor1
- tensor2
- tensor3
- tensor4
- to_
axis_ ops_ with_ tf_ rules - vector_
size - wire_
rank_ broadcast - wire_
with_ rank_ broadcast
Type Aliases§
- BinOp
- Extension
- From
Tract - From
Tract With Op - GetTransform
- Runnable
Model - A runnable model with fixed inputs and outputs.
- TVec
- A Smallvec instantiation with 4 embeddable values.
- ToTract
- 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
.