tl-lang 0.4.8

A differentiable programming language with tensor support for machine learning
1
2
3
4
5
6
fn main() {
    let mut x = Tensor::randn([2, 2], false);
    println("x: {}", x);
    let y = x.clamp(0.0, 1.0);
    println("y: {}", y);
}