pub trait ToDim<T, I, O>: Devicewhere I: Shape, O: Shape,{ // Required method fn to_dim(&self, ptr: Self::Ptr<T, I>) -> Self::Ptr<T, O>; }