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