Module tract_core::internal
source · [−]Expand description
This prelude is meant for code extending tract (like implementing new ops).
Re-exports
pub use crate::ops::element_wise::ElementWiseMiniOp;
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 downcast_rs as tract_downcast_rs;
pub use dims;
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;
pub use crate::model::*;
pub use crate::ops::change_axes::*;
pub use crate::ops::invariants::*;
pub use crate::prelude::*;
Modules
Integer trait and functions.
Extra iterator adaptors, functions and macros.
The
ndarray
crate provides an n-dimensional container for general elements
and for numerics.Numeric traits for generic mathematics
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
Derive macro generating an impl of the trait
Hash
.Construct an ad-hoc error from a string or existing non-
anyhow
error
value.Return early with an error.
Construct an ad-hoc error from a string or existing non-
anyhow
error
value.Structs
A complex number in Cartesian form.
Zero-sized type used to mark things that “act like” they own a
T
.Tensor is a concrete tensor in tract.
Enums
Traits
A super-trait for value acting as tensor dimensions in tract.
A hashable type.
Convenient conversion to Arc.
Convenient conversion to Tensor.
Convenience trait to convert values to TDim.
Provides the
context
method for Result
.