Skip to main content

ruda_runtime/runtime/
normalization.rs

1use super::server::Handle;
2use ruda_core::tensor::{DType, Shape, Strides};
3
4/// An owned device buffer binding and its logical tensor layout.
5#[derive(Clone, Debug)]
6pub struct TensorBuffer {
7    /// Retains the allocation for the duration of native execution.
8    pub handle: Handle,
9    /// Logical dimensions.
10    pub shape: Shape,
11    /// Element strides, including non-contiguous layouts.
12    pub strides: Strides,
13    /// Stored element type; native implementations must validate it.
14    pub dtype: DType,
15}