pub struct TensorBufferRequirements<'a> { /* private fields */ }Expand description
Requirements for a tensor buffer.
This struct represents the requirements for a tensor buffer. It is used to determine the supported buffer types and the buffer size.
Implementations§
Source§impl<'a> TensorBufferRequirements<'a>
impl<'a> TensorBufferRequirements<'a>
Sourcepub fn buffer_size(&self) -> Result<usize, Error>
pub fn buffer_size(&self) -> Result<usize, Error>
Returns the size of the buffer in bytes.
Sourcepub fn supported_types(&self) -> Result<Vec<TensorBufferType>, Error>
pub fn supported_types(&self) -> Result<Vec<TensorBufferType>, Error>
Returns the supported tensor buffer types.
Auto Trait Implementations§
impl<'a> Freeze for TensorBufferRequirements<'a>
impl<'a> RefUnwindSafe for TensorBufferRequirements<'a>
impl<'a> !Send for TensorBufferRequirements<'a>
impl<'a> !Sync for TensorBufferRequirements<'a>
impl<'a> Unpin for TensorBufferRequirements<'a>
impl<'a> UnsafeUnpin for TensorBufferRequirements<'a>
impl<'a> UnwindSafe for TensorBufferRequirements<'a>
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