ruda-runtime 0.1.2

Ruda portable host runtime.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::server::Handle;
use ruda_core::tensor::{DType, Shape, Strides};

/// An owned device buffer binding and its logical tensor layout.
#[derive(Clone, Debug)]
pub struct TensorBuffer {
    /// Retains the allocation for the duration of native execution.
    pub handle: Handle,
    /// Logical dimensions.
    pub shape: Shape,
    /// Element strides, including non-contiguous layouts.
    pub strides: Strides,
    /// Stored element type; native implementations must validate it.
    pub dtype: DType,
}