Module prelude

Module prelude 

Source
Expand description

This prelude is meant for code using tract.

Re-exports§

pub use crate::framework::Framework;
pub use crate::plan::PlanOptions;
pub use crate::plan::SimplePlan;
pub use crate::plan::SimpleState;
pub use crate::value::IntoTValue;
pub use crate::value::TValue;
pub use ndarray as tract_ndarray;
pub use num_traits as tract_num_traits;
pub use tract_data;
pub use tract_linalg;
pub use crate::model::*;

Modules§

multithread
tract_itertools
Extra iterator adaptors, functions and macros.

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
Opaque
Symbol
SymbolScope
SymbolValues
Tensor
Tensor is a concrete tensor in tract.
f16
A 16-bit floating point type implementing the IEEE 754-2008 standard binary16 a.k.a “half” format.

Enums§

DatumType
QParams
TDim

Traits§

Datum
IntoArcTensor
Convenient conversion to Arc.
IntoTensor
Convenient conversion to Tensor.
ToDim
Convenience trait to convert values to TDim.

Functions§

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

Type Aliases§

TVec
A Smallvec instantiation with 4 embeddable values.
TractError
TractResult