ferrotorch-core
Core tensor and autograd engine for ferrotorch -- PyTorch in Rust.
What it provides
Tensor<T>-- N-dimensional tensor with automatic differentiation- Autograd -- reverse-mode automatic differentiation via
backward(),no_grad(), andautocast - Creation functions --
tensor,zeros,ones,rand,randn,arange,linspace,eye,full,scalar,zeros_like,ones_like,rand_like,randn_like,full_like - Arithmetic & math ops -- element-wise operations with broadcast support, differentiable
exp,log,sin,cos,clamp - Tensor manipulation --
permute,view,contiguous,chunk,split - Reductions --
sum_dim,mean_dimwith axis and keepdim support - Einsum -- differentiable Einstein summation (
einsum,einsum_differentiable) - FFT --
fft,ifft,rfft,irfft,fft2,ifft2with differentiable variants - Quantization --
quantize,dequantize,quantized_matmul,QuantizedTensor - Sparse tensors --
SparseTensorfor COO-format sparse data - Storage --
TensorStorage,StorageBufferfor raw memory management - DType system --
DType,Element,Floattraits coveringf32,f64,f16,bf16 - Device abstraction --
Deviceenum for CPU/GPU placement
Quick start
use ;
Part of ferrotorch
This crate is one component of the ferrotorch workspace. See the workspace README for full documentation.
License
MIT OR Apache-2.0