pub struct HostData {
pub data: HostDataVec,
pub shape: Vec<usize>,
pub strides: Vec<usize>,
}Fields§
§data: HostDataVec§shape: Vec<usize>§strides: Vec<usize>Implementations§
Source§impl HostData
impl HostData
pub fn from_tensor_handle( client: &ComputeClient<TestRuntime>, tensor_handle: &TensorHandle<TestRuntime>, host_data_type: HostDataType, ) -> Self
pub fn get_f32(&self, index: &[usize]) -> f32
pub fn get_bool(&self, index: &[usize]) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HostData
impl RefUnwindSafe for HostData
impl Send for HostData
impl Sync for HostData
impl Unpin for HostData
impl UnwindSafe for HostData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more