Struct mnn::interpreter::TensorInfo
source · pub struct TensorInfo<'t, 'tl> { /* private fields */ }
Implementations§
source§impl<'t, 'tl> TensorInfo<'t, 'tl>
impl<'t, 'tl> TensorInfo<'t, 'tl>
pub fn name(&self) -> &'tl str
pub fn tensor<H: HalideType>(&self) -> Result<Tensor<RefMut<'t, Device<H>>>>
sourcepub unsafe fn tensor_unresized<H: HalideType>(
&self,
) -> Result<Tensor<RefMut<'t, Device<H>>>>
pub unsafe fn tensor_unresized<H: HalideType>( &self, ) -> Result<Tensor<RefMut<'t, Device<H>>>>
§Safety
The shape is not checked so it’s marked unsafe since futher calls to interpreter might be unsafe with this
pub fn raw_tensor(&self) -> RawTensor<'t>
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> 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