Skip to main content

Module internal

Module internal 

Source

Re-exports§

pub use crate::dyn_eq;
pub use crate::ulp::UlpFloat;
pub use crate::ulp::ulp_distance;
pub use ndarray as tract_ndarray;
pub use num_integer;
pub use num_traits as tract_num_traits;
pub use smallvec as tract_smallvec;
pub use crate::prelude::*;

Macros§

anyhow
Construct an ad-hoc error from a string or existing non-anyhow error value.
bail
Return early with an error.
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.

Structs§

TensorView
A read-only, type-erased window into a tensor’s plain storage: the bytes from the view’s origin to the end of the storage, read through shape and strides (in items, never negative).
TensorViewMut
The mutable counterpart of TensorView, obtained from a &mut Tensor (or split out of raw bytes of a type where any bit pattern is valid), so writes through it never alias another live view.

Enums§

Approximation

Traits§

ClampCast
DimLike
A super-trait for value acting as tensor dimensions in tract.
ExoticFact
TractErrorContext
Provides the context method for Result.

Functions§

clip_range_bounds
parse_tdim
solve_for
vector_size

Type Aliases§

StaticName