cidre 0.11.9

Apple frameworks bindings for rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::{define_obj_type, mps, ns, objc};

define_obj_type!(pub TensorData(ns::Id));

impl TensorData {
    #[objc::msg_send(shape)]
    pub fn shape(&self) -> mps::Shape;

    #[objc::msg_send(dataType)]
    pub fn data_type(&self) -> mps::DType;

    #[objc::msg_send(device)]
    pub fn device(&self) -> &mps::graph::Device;
}