1pub mod core {
43 pub use tenferro_tensor_core::{
44 col_major_strides, DType, DynRank, ErrorKind, HostTensor, HostTensorView, IntoShapeVec,
45 Rank, Result, ShapeMismatch, ShapeVec, SliceSpec, StrideVec, Tensor, TensorLayout,
46 TensorRank, TensorRef, TensorScalar, TensorView, ValidationError, ValidationKind,
47 };
48}
49
50pub use num_complex::Complex;
52
53pub type Complex32 = Complex<f32>;
63
64pub type Complex64 = Complex<f64>;
74
75pub use tenferro_tensor_core::{
76 ErrorKind, IntoRankShape, IntoShapeVec, ShapeMismatch, ShapeVec, SliceSpec, StrideVec,
77 TensorRef, ValidationError, ValidationKind,
78};
79
80pub mod backend;
81pub mod cache;
82pub mod capability;
83pub mod config;
84pub mod dispatch;
85pub mod error;
86pub mod prelude;
87pub mod types;
88pub mod validate;
89
90pub use backend::{
91 default_backend_session, with_session_entry_guard, BackendCachedDot, BackendRuntimeCache,
92 BackendSession, BackendSessionHost, ContractionScalar, DotGeneralAccumulation,
93 ElementwiseReadOp, SessionCachedDot, TensorAnalytic, TensorBackend, TensorBackendOps,
94 TensorBuffer, TensorDeviceTransfer, TensorDot, TensorElementwise, TensorFusion, TensorIndexing,
95 TensorReduction, TensorStructural, TensorViewCanonicalization,
96};
97pub use cache::{CacheStats, RuntimeCacheControl};
98pub use capability::{
99 capability_output_dtype, BackendId, CapabilityAxis, CapabilityQuery, OperationCapability,
100 SupportLevel, TensorBackendCapability,
101};
102pub use config::{
103 CompareDir, DotGeneralConfig, GatherConfig, PadConfig, ScatterConfig, SliceConfig,
104};
105pub use error::{BoxError, Error, ReinterpretError, Result};
106pub use types::{
107 col_major_strides, AllocationDomainId, AllocationId, BackendStorage, BackendStorageHandle,
108 ColMajorView, ColMajorViewMut, CpuDomainId, DType, DeviceAccessError, DeviceAccessRequest,
109 DeviceId, DeviceKind, DynRank, GpuBackendKind, HostAccessError, HostReadGuard, HostWriteGuard,
110 MemoryKind, Placement, PreparedDeviceAccess, Rank, SharedTensorAllocationDomain, StorageBuffer,
111 StridedSliceSpec, Tensor, TensorLayout, TensorRank, TensorRead, TensorScalar, TensorStorageRef,
112 TensorStorageRefMut, TensorValue, TensorView, TensorViewMut, TensorWrite, TypedTensor,
113 TypedTensorView, TypedTensorViewMut, TypedTensorViewMutSplit, TypedTensorWrite,
114};
115
116mod storage;
117
118#[doc(hidden)]
119pub use storage::{
120 AccessError, AllocationKey, BackendAllocation, HostBufferRecycler, ProviderCapabilities,
121 ProviderKind, ProviderReadMapping, ProviderWriteMapping, RootBoundSpan, RootResourceExtent,
122 RootResourceId, SpanValidationError,
123};
124pub use storage::{AllocationGroup, DescriptorSlot, GroupError};
125
126#[cfg(test)]
127pub(crate) mod tests;