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

pub trait DynamicAllocationPolicy<T> {
    type Layout: Alloc + for<'a> LayoutMut<'a, T>;
}

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

Associated Types

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

Loading content...

Implementors

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

type Layout = HeapLayout<T>

impl<T> DynamicAllocationPolicy<T> for StackFirstPolicy where
    T: Default + Clone + 'static, 
[src]

type Layout = HeapLayout<T>

Loading content...