objc2-ml-compute 0.3.2

Bindings to the MLCompute framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![allow(deprecated)]
#![cfg(feature = "MLCTensor")]
#![cfg(feature = "MLCTypes")]
use objc2_foundation::{NSArray, NSNumber};
use objc2_ml_compute::{MLCDataType, MLCTensor};

#[test]
fn new() {
    unsafe {
        MLCTensor::tensorWithShape_dataType(
            &NSArray::from_retained_slice(&[NSNumber::new_u8(4), NSNumber::new_u8(4)]),
            MLCDataType::Float32,
        );
    }
}