Module tract_core::internal [−][src]
This prelude is meant for code extending tract (like implementing new ops).
Re-exports
pub use crate::impl_dyn_hash; |
pub use crate::model::*; |
pub use crate::ops::change_axes::*; |
pub use crate::ops::element_wise::ElementWiseMiniOp; |
pub use crate::ops::invariants::*; |
pub use crate::ops::AttrOrInput; |
pub use crate::ops::AxisInfo; |
pub use crate::ops::Cost; |
pub use crate::ops::EvalOp; |
pub use crate::ops::Invariants; |
pub use crate::ops::Op; |
pub use crate::ops::OpState; |
pub use crate::ops::Validation; |
pub use crate::plan::SessionState; |
pub use crate::prelude::*; |
pub use downcast_rs as tract_downcast_rs; |
pub use args_1; |
pub use args_2; |
pub use args_3; |
pub use args_4; |
pub use args_5; |
pub use args_6; |
pub use args_7; |
pub use args_8; |
pub use as_op; |
pub use impl_op_same_as; |
pub use not_a_typed_op; |
pub use op_as_typed_op; |
pub use bin_to_super_type; |
pub use element_wise; |
pub use element_wise_oop; |
Modules
tract_ndarray | The |
tract_smallvec | Small vectors in various sizes. These store a certain number of elements inline, and fall back to the heap for larger allocations. This can be a useful optimization for improving cache locality and reducing allocator traffic for workloads that fit within the inline buffer. |
Macros
Hash | Derive macro generating an impl of the trait |
bail | Return early with an error. |
dispatch_copy | |
dispatch_copy_by_size | |
dispatch_datum | |
dispatch_datum_by_size | |
dispatch_floatlike | |
dispatch_hash | |
dispatch_numbers | |
dispatch_signed | |
format_err | Construct an ad-hoc error from a string or existing non- |
tvec |
Structs
Blob | |
HashMap | A hash map implemented with quadratic probing and SIMD lookup. |
PhantomData | Zero-sized type used to mark things that “act like” they own a |
Symbol | |
SymbolValues | |
Tensor | Tensor is a concrete tensor in tract. |
TensorView | |
f16 |
Enums
Cow | A clone-on-write smart pointer. |
DatumType | |
TDim |
Traits
Datum | |
DimLike | A super-trait for value acting as tensor dimensions in tract. |
DynHash | |
Hash | A hashable type. |
IntoArcTensor | Convenient conversion to Arc |
IntoTensor | Convenient conversion to Tensor. |
MaybeProduct | |
SloppyHash | |
ToDim | Convenience trait to convert values to TDim. |
TractErrorContext | Provides the |
Functions
arr4 | |
dyn_hash | |
hash_f32 | |
hash_opt_f32 | |
natural_strides | |
rctensor0 | |
rctensor1 | |
rctensor2 | |
rctensor3 | |
rctensor4 | |
tensor0 | |
tensor1 | |
tensor2 | |
tensor3 | |
tensor4 |
Type Definitions
TVec | A Smallvec instantiation with 4 embeddable values. |