pub struct RawTensor<'r> { /* private fields */ }
Expand description
A raw tensor type that doesn’t have any guarantees and will be unconditionally dropped
Implementations§
source§impl<'r> RawTensor<'r>
impl<'r> RawTensor<'r>
pub fn shape(&self) -> TensorShape
pub fn destroy(self)
pub fn dimensions(&self) -> usize
pub fn width(&self) -> u32
pub fn height(&self) -> u32
pub fn channel(&self) -> u32
pub fn is_dynamic_unsized(&self) -> bool
pub fn wait(&self, map_type: MapType, finish: bool)
sourcepub unsafe fn to_concrete<T: TensorType>(self) -> Tensor<T>where
T::H: HalideType,
pub unsafe fn to_concrete<T: TensorType>(self) -> Tensor<T>where
T::H: HalideType,
§Safety
This is very unsafe do not use this unless you know what you are doing
Auto Trait Implementations§
impl<'r> Freeze for RawTensor<'r>
impl<'r> RefUnwindSafe for RawTensor<'r>
impl<'r> !Send for RawTensor<'r>
impl<'r> !Sync for RawTensor<'r>
impl<'r> Unpin for RawTensor<'r>
impl<'r> UnwindSafe for RawTensor<'r>
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