pub struct TensorBinding(/* private fields */);Expand description
Tensor binding information.
C++ equivalent: MTL::TensorBinding
Implementations§
Source§impl TensorBinding
impl TensorBinding
Sourcepub fn access(&self) -> BindingAccess
pub fn access(&self) -> BindingAccess
Get the access mode.
Sourcepub fn is_argument(&self) -> bool
pub fn is_argument(&self) -> bool
Check if this is an argument.
Sourcepub fn binding_type(&self) -> BindingType
pub fn binding_type(&self) -> BindingType
Get the binding type.
Sourcepub fn dimensions_ptr(&self) -> *const c_void
pub fn dimensions_ptr(&self) -> *const c_void
Get the dimensions as a raw pointer.
C++ equivalent: TensorExtents* dimensions() const
Sourcepub fn index_type(&self) -> DataType
pub fn index_type(&self) -> DataType
Get the index type.
C++ equivalent: DataType indexType() const
Sourcepub fn tensor_data_type(&self) -> TensorDataType
pub fn tensor_data_type(&self) -> TensorDataType
Get the tensor data type.
C++ equivalent: TensorDataType tensorDataType() const
Trait Implementations§
Source§impl Clone for TensorBinding
impl Clone for TensorBinding
Source§impl Drop for TensorBinding
impl Drop for TensorBinding
Source§impl Referencing for TensorBinding
impl Referencing for TensorBinding
Source§fn as_mut_ptr(&self) -> *mut c_void
fn as_mut_ptr(&self) -> *mut c_void
Get the raw mutable pointer to the Objective-C object.
Source§fn retain(&self) -> Selfwhere
Self: Clone,
fn retain(&self) -> Selfwhere
Self: Clone,
Retain the object, incrementing its reference count. Read more
Source§fn autorelease(&self) -> Selfwhere
Self: Clone,
fn autorelease(&self) -> Selfwhere
Self: Clone,
Autorelease the object. Read more
Source§fn retain_count(&self) -> usize
fn retain_count(&self) -> usize
Get the retain count of the object. Read more
impl Send for TensorBinding
impl Sync for TensorBinding
Auto Trait Implementations§
impl Freeze for TensorBinding
impl RefUnwindSafe for TensorBinding
impl Unpin for TensorBinding
impl UnwindSafe for TensorBinding
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