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