mpsgraph 0.2.0

Modern Rust bindings for Apple's Metal Performance Shaders Graph framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::collections::HashMap;

use objc2::rc::Retained;
use objc2_foundation::NSDictionary;

use crate::Tensor;
use crate::TensorData;

pub type RetainedTensorDataHashMap = HashMap<Retained<Tensor>, Retained<TensorData>>;
pub type TensorDataHashMap<'a> = HashMap<&'a Tensor, &'a TensorData>;
pub type TensorDataDictionary = NSDictionary<Tensor, TensorData>;