pub mod allocation;
pub mod arg;
pub mod arg_into;
pub mod auto_device;
pub(crate) mod backend;
pub mod base;
pub mod conv2d;
pub mod device;
pub(crate) mod display;
pub mod dtype;
pub mod grad;
pub mod matmul;
pub mod ops;
pub mod reduction;
pub mod tracing;
pub mod transfer;
pub mod prelude {
pub use super::allocation::{CheckedByteLen, checked_byte_len_from_dims};
pub use super::arg::TensorArgs;
pub use super::arg_into::{ArgInto, TensorArgsData};
pub use super::auto_device::{BestDevice, BestDeviceAt};
pub use super::backend::{
AutogradBackend, Backend, HostInterop, StorageBackend, StorageTransfer, SupportsDType,
TransferBackend, TransferTo, VariableBackend,
};
#[cfg(feature = "distributed")]
pub use super::base::PlacedTensorError;
pub use super::base::Tensor;
pub use super::device::{
ConstDevice, Cpu, Device, DeviceId, DeviceKind, DevicePreference, DeviceSet, DeviceSetError,
};
#[cfg(feature = "cuda")]
pub use super::device::{Cuda, CudaN};
#[cfg(feature = "metal")]
pub use super::device::{Metal, MetalN};
#[cfg(feature = "wgpu")]
pub use super::device::{Wgpu, WgpuN};
pub use crate::shapes::Dyn;
pub use super::dtype::{
BoolDType, BuiltinDType, ConstDType, DType, DTypeDescriptor, DTypeId, DTypeKey, DTypeKind,
FloatDType, IntDType, PlainDType, Q8_0, QuantDType, StorageEncoding, TensorElement,
};
pub use super::grad::{Grad, GradJoin, JoinedGrad, NoGrad, RequiresGrad};
pub use super::matmul::MatMulShape;
pub use super::reduction::Reduction;
pub use super::tracing::{
TracingBackend, extract_graph, tracing_mark_input, tracing_mark_input_typed,
tracing_mark_output,
};
pub use super::transfer::ToDevice;
pub use crate::autograd::Gradients;
}