pub struct GpuTensorHandle {
pub shape: Vec<usize>,
pub device_id: u32,
pub buffer_id: u64,
pub descriptor: GpuTensorDescriptor,
}Fields§
§shape: Vec<usize>§device_id: u32Stable provider/device namespace identifier. Distinct live provider instances that can own handles must use distinct identifiers because provider routing is keyed by this value.
buffer_id: u64§descriptor: GpuTensorDescriptorImplementations§
Source§impl GpuTensorHandle
impl GpuTensorHandle
pub fn new(shape: Vec<usize>, device_id: u32, buffer_id: u64) -> Self
pub fn with_numeric_descriptor( self, element_type: NumericElementType, storage: GpuTensorStorage, ) -> Self
pub fn with_provenance(self, provenance: GpuHandleProvenance) -> Self
Trait Implementations§
Source§impl Clone for GpuTensorHandle
impl Clone for GpuTensorHandle
Source§fn clone(&self) -> GpuTensorHandle
fn clone(&self) -> GpuTensorHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GpuTensorHandle
impl Debug for GpuTensorHandle
Source§impl<'de> Deserialize<'de> for GpuTensorHandle
impl<'de> Deserialize<'de> for GpuTensorHandle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GpuTensorHandle
impl PartialEq for GpuTensorHandle
Source§impl Serialize for GpuTensorHandle
impl Serialize for GpuTensorHandle
impl StructuralPartialEq for GpuTensorHandle
Auto Trait Implementations§
impl Freeze for GpuTensorHandle
impl RefUnwindSafe for GpuTensorHandle
impl Send for GpuTensorHandle
impl Sync for GpuTensorHandle
impl Unpin for GpuTensorHandle
impl UnsafeUnpin for GpuTensorHandle
impl UnwindSafe for GpuTensorHandle
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