pub mod core {
pub use tenferro_tensor_core::{
col_major_strides, DType, DynRank, ErrorKind, IntoShapeVec, Rank, Result, ShapeMismatch,
ShapeVec, SliceSpec, StrideVec, TensorLayout, TensorRank, TensorScalar, ValidationError,
ValidationKind,
};
}
pub use num_complex::Complex;
pub type Complex32 = Complex<f32>;
pub type Complex64 = Complex<f64>;
pub use tenferro_tensor_core::{
ErrorKind, IntoRankShape, IntoShapeVec, ShapeMismatch, ShapeVec, SliceSpec, StrideVec,
ValidationError, ValidationKind, INLINE_RANK,
};
mod default_scalars;
mod erased_host;
mod scalar_set;
pub mod backend;
pub mod cache;
pub mod capability;
pub mod config;
pub mod dispatch;
pub mod error;
mod native_engine;
pub mod prelude;
pub mod types;
pub mod validate;
pub use backend::{
ActivationOp, ContractionScalar, DotGeneralAccumulation, ElementwiseReadOp, Engine,
SessionCachedDot, TensorAnalytic, TensorBackendOps, TensorBuffer, TensorDeviceTransfer,
TensorDot, TensorElementwise, TensorFusion, TensorIndexing, TensorReduction, TensorStructural,
TensorViewCanonicalization,
};
pub use cache::{CacheStats, RuntimeCacheControl};
pub use capability::{
capability_output_dtype, BackendId, CapabilityAxis, CapabilityQuery, OperationCapability,
SupportLevel, TensorBackendCapability,
};
pub use config::{
degenerate_dot_kind, CompareDir, DegenerateDotKind, DotGeneralConfig, GatherConfig, PadConfig,
ScatterConfig, SliceConfig,
};
pub use erased_host::ErasedHostTensor;
pub use error::{BoxError, Error, ReinterpretError, Result};
pub use native_engine::NativeSessionRef;
pub use scalar_set::ScalarSet;
pub use default_scalars::{DefaultScalars, DefaultScalarsRef, DefaultScalarsView};
pub use types::{
col_major_strides, AllocationDomainId, AllocationId, BackendStorage, BackendStorageHandle,
ColMajorView, ColMajorViewMut, CpuDomainId, DType, DeviceAccessError, DeviceAccessRequest,
DeviceId, DeviceKind, DynRank, Dynamic, Gpu, GpuBackendKind, Host, HostAccessError,
HostReadGuard, HostWriteGuard, MemoryKind, Placement, PreparedDeviceAccess, Rank,
Representation, SharedTensorAllocationDomain, StorageBuffer, StridedSliceSpec, Tensor,
TensorLayout, TensorRank, TensorRead, TensorScalar, TensorStorageRef, TensorStorageRefMut,
TensorValue, TensorView, TensorViewMut, TensorWrite, TypedTensor, TypedTensorView,
TypedTensorViewMut, TypedTensorViewMutSplit, TypedTensorWrite,
};
mod storage;
#[doc(hidden)]
pub use storage::{
AccessError, AllocationKey, BackendAllocation, HostBufferRecycler, ProviderCapabilities,
ProviderKind, ProviderReadMapping, ProviderWriteMapping, RootBoundSpan, RootResourceExtent,
RootResourceId, SpanValidationError,
};
pub use storage::{AllocationGroup, DescriptorSlot, GroupError};
#[cfg(test)]
pub(crate) mod tests;