coaster 0.2.0

high-performance computation on any hardware
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use coaster::prelude::*;

fn main() {
    let ntv = Native::new();
    let dev = ntv.new_device(ntv.hardwares()).unwrap();

    let _mem = {
        let x = &mut SharedTensor::<f32>::new(&10);
        //~^ ERROR error: borrowed value does not live long enough
        let m = x.write_only(&dev).unwrap();
        m
    };
}