[][src]Trait melange::tensor::allocation_policy::StaticAllocationPolicy

pub trait StaticAllocationPolicy<T, S> {
    type Layout: Default + for<'a> LayoutMut<'a, T>;
}

Trait that defines the Layout that should be used with the implementor policy in the context of statically sized (compile time) tensors.

Associated Types

type Layout: Default + for<'a> LayoutMut<'a, T>

Loading content...

Implementors

impl<T, S> StaticAllocationPolicy<T, S> for DefaultPolicy where
    T: Default + Clone + 'static,
    S: StaticShape
[src]

impl<T, S> StaticAllocationPolicy<T, S> for StackFirstPolicy where
    T: Default + 'static,
    S: StaticShape + NumElements<T>,
    <S as NumElements<T>>::Output: 'static, 
[src]

type Layout = StackLayout<T, S>

Loading content...