Docs / nablatensor-tensor / com.nablatensor.tensor
final class
NablaTensors
Fluent entry point for creating tensors and querying devices/backends.
Methods
static List<ComputeBackend> backends()
static List<Device> devices()
Devices available on this machine, one per available backend.
static Device defaultDevice()
static PrngKey key(long seed)
Creates an immutable reproducible counter-based random key.
static Tensor array(float[] data, int... dims)
static Tensor array(float[][] data)
static Tensor arrayOn(float[] data, Shape shape, Device device)
static Tensor zeros(int... dims)
static Tensor randn(int... dims)
static Tensor randn(Random random, int... dims)