1pub mod core {
42 pub use tenferro_tensor_core::{
43 col_major_strides, DType, DynRank, ErrorKind, IntoShapeVec, Rank, Result, ShapeMismatch,
44 ShapeVec, SliceSpec, StrideVec, TensorLayout, TensorRank, TensorScalar, ValidationError,
45 ValidationKind,
46 };
47}
48
49pub use num_complex::Complex;
51
52pub type Complex32 = Complex<f32>;
62
63pub type Complex64 = Complex<f64>;
73
74pub use tenferro_tensor_core::{
75 normalize_axes, normalize_axis, AxisVec, ErrorKind, IntoRankShape, IntoShapeVec, ShapeMismatch,
76 ShapeVec, SliceSpec, StrideVec, ValidationError, ValidationKind, INLINE_RANK,
77};
78
79mod default_scalars;
80mod dest;
81mod erased_host;
82mod scalar_set;
83mod view;
84
85pub mod backend;
86pub mod cache;
87pub mod capability;
88pub mod config;
89pub mod dispatch;
90pub mod error;
91mod native_engine;
92pub mod prelude;
93pub mod types;
94pub mod validate;
95
96pub use backend::{
97 ActivationOp, ContractionScalar, DotGeneralAccumulation, ElementwiseReadOp, Engine,
98 SessionCachedDot, TensorAnalytic, TensorBackendOps, TensorBuffer, TensorDeviceTransfer,
99 TensorDot, TensorElementwise, TensorFusion, TensorIndexing, TensorReduction, TensorStructural,
100 TensorViewCanonicalization,
101};
102pub use cache::{CacheStats, RuntimeCacheControl};
103pub use capability::{
104 capability_entry, capability_output_dtype, BackendId, CapabilityAxis, CapabilityQuery,
105 OperationCapability, SupportLevel, TensorBackendCapability,
106};
107pub use config::{
108 degenerate_dot_kind, CompareDir, DegenerateDotKind, DotGeneralConfig, GatherConfig, PadConfig,
109 ScatterConfig, SliceConfig,
110};
111pub use dest::{Conj, Dest, DestMode, DotGeneralOptions};
112pub use erased_host::ErasedHostTensor;
113pub use error::{BoxError, Error, ReinterpretError, Result};
114pub use native_engine::NativeSessionRef;
115pub use scalar_set::ScalarSet;
116pub use view::{AsView, Erased, Repr, Typed};
117
118pub use default_scalars::{DefaultScalars, DefaultScalarsRef, DefaultScalarsView};
119
120pub use types::{
121 col_major_strides, AllocationDomainId, AllocationId, BackendStorage, BackendStorageHandle,
122 ColMajorView, ColMajorViewMut, CpuDomainId, DType, DeviceAccessError, DeviceAccessRequest,
123 DeviceId, DeviceKind, DynRank, Dynamic, Gpu, GpuBackendKind, Host, HostAccessError,
124 HostReadGuard, HostWriteGuard, MemoryKind, Placement, PreparedDeviceAccess, Rank,
125 Representation, SharedTensorAllocationDomain, StorageBuffer, StridedSliceSpec, Tensor,
126 TensorLayout, TensorRank, TensorRead, TensorScalar, TensorStorageRef, TensorStorageRefMut,
127 TensorValue, TensorView, TensorViewMut, TensorWrite, TypedTensor, TypedTensorView,
128 TypedTensorViewMut, TypedTensorViewMutSplit, TypedTensorWrite,
129};
130
131mod storage;
132
133#[doc(hidden)]
134pub use storage::{
135 AccessError, AllocationKey, BackendAllocation, HostBufferRecycler, ProviderCapabilities,
136 ProviderKind, ProviderReadMapping, ProviderWriteMapping, RootBoundSpan, RootResourceExtent,
137 RootResourceId, SpanValidationError,
138};
139pub use storage::{AllocationGroup, DescriptorSlot, GroupError};
140
141#[cfg(test)]
142pub(crate) mod tests;