pub struct TensorInfo<'t, 'tl> { /* private fields */ }Expand description
Information about a tensor in a tensor list
Implementations§
Source§impl<'t, 'tl> TensorInfo<'t, 'tl>
impl<'t, 'tl> TensorInfo<'t, 'tl>
Sourcepub fn tensor<H: HalideType>(&self) -> Result<&'tl TensorRef<H, Device>>
pub fn tensor<H: HalideType>(&self) -> Result<&'tl TensorRef<H, Device>>
Get the tensor with the specified type
Sourcepub fn raw_tensor(&self) -> &'tl AnyTensorRef
pub fn raw_tensor(&self) -> &'tl AnyTensorRef
This function return’s the raw tensor without any sort of type-checking or shape-checking
Trait Implementations§
Auto Trait Implementations§
impl<'t, 'tl> Freeze for TensorInfo<'t, 'tl>
impl<'t, 'tl> RefUnwindSafe for TensorInfo<'t, 'tl>
impl<'t, 'tl> !Send for TensorInfo<'t, 'tl>
impl<'t, 'tl> !Sync for TensorInfo<'t, 'tl>
impl<'t, 'tl> Unpin for TensorInfo<'t, 'tl>
impl<'t, 'tl> UnsafeUnpin for TensorInfo<'t, 'tl>
impl<'t, 'tl> UnwindSafe for TensorInfo<'t, 'tl>
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