Skip to content

Commit ec858a9

Browse files
committed
Reorganize all mandatory modules into a parent module, core
Fixed C FFI pointer types
1 parent 28dac47 commit ec858a9

29 files changed

+2338
-2614
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ indexing = []
2727
graphics = []
2828
image = []
2929
lapack = []
30-
machine_learning = []
30+
ml = []
3131
macros = []
3232
random = []
3333
signal = []
3434
sparse = []
3535
statistics = []
3636
vision = []
3737
default = ["algorithm", "arithmetic", "blas", "data", "indexing", "graphics", "image", "lapack",
38-
"machine_learning", "macros", "random", "signal", "sparse", "statistics", "vision"]
38+
"ml", "macros", "random", "signal", "sparse", "statistics", "vision"]
3939

4040
[dependencies]
4141
libc = "0.2"

examples/using_half.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ fn main() {
55
set_device(0);
66
info();
77

8-
let values: Vec<_> = (1u8..101).map(f32::from).collect();
8+
let values: Vec<_> = (1u8..101).map(std::convert::From::from).collect();
99

1010
let half_values = values.iter().map(|&x| f16::from_f32(x)).collect::<Vec<_>>();
1111

0 commit comments

Comments
 (0)