Skip to main content

TensorInfo

Struct TensorInfo 

Source
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>

Source

pub fn name(&self) -> &'tl str

Get the name of the tensor

Source

pub fn tensor<H: HalideType>(&self) -> Result<&'tl TensorRef<H, Device>>

Get the tensor with the specified type

Source

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§

Source§

impl Debug for TensorInfo<'_, '_>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> MaybeDebug for T
where T: Debug,