Quickstart: Tensor Basics #
This first TorchLean example introduces typed tensor construction, reshaping, and element-type conversion.
What it covers:
- rank-zero and arbitrary-rank literals,
- reshaping without changing entry order,
- the fact that the element type
αselects the tensor's arithmetic, - conversion to native
Float32.
Run:
scripts/lake.sh exe torchlean quickstart_tensors
Command-line help for the tensor-basics quickstart.