nuvec 0.6.1

Pure-Rust MLX for Apple Silicon: lazy arrays on unified memory, composable transforms and Metal kernels
Documentation
1
2
3
4
5
6
7
8
9
10
error[E0282]: type annotations needed for `&_`
 --> tests/ui/inference/fail_unannotated.rs:8:19
  |
8 |     let _ = grad(|x| x.sum())(&x);
  |                   ^  - type must be known at this point
  |
help: consider giving this closure parameter an explicit type, where the type for type parameter `P` is specified
  |
8 |     let _ = grad(|x: &P| x.sum())(&x);
  |                    ++++