Trait collenchyma::tensor::IntoTensorDesc
[−]
[src]
pub trait IntoTensorDesc { fn into(&self) -> TensorDesc; }
Describes a conversion into a Tensor Descriptor.
This allows for convenient creation of a new SharedTensor. e.g. (2, 4) -> [2,4] or () -> [] or 2 -> [2]
Required Methods
fn into(&self) -> TensorDesc
Converts the implemented type into a TensorDesc.
Implementors
impl IntoTensorDesc for ()
impl IntoTensorDesc for usize
impl IntoTensorDesc for u32
impl IntoTensorDesc for isize
impl IntoTensorDesc for i32
impl IntoTensorDesc for Vec<usize>
impl<'a> IntoTensorDesc for &'a [usize]
impl IntoTensorDesc for (usize, usize)
impl IntoTensorDesc for (usize, usize, usize)
impl IntoTensorDesc for (usize, usize, usize, usize)
impl IntoTensorDesc for (usize, usize, usize, usize, usize)
impl IntoTensorDesc for (usize, usize, usize, usize, usize, usize)