pub struct InputTensorIdentity { /* private fields */ }Expand description
Payload-free shape and element-type identity for a backend tensor.
Implementations§
Source§impl InputTensorIdentity
impl InputTensorIdentity
Sourcepub fn new(
dtype: TensorDtype,
shape: Vec<usize>,
) -> Result<Self, PreparedInputError>
pub fn new( dtype: TensorDtype, shape: Vec<usize>, ) -> Result<Self, PreparedInputError>
Validates a non-scalar tensor identity with non-zero dimensions.
Sourcepub const fn dtype(&self) -> &TensorDtype
pub const fn dtype(&self) -> &TensorDtype
Logical element type.
Trait Implementations§
Source§impl Clone for InputTensorIdentity
impl Clone for InputTensorIdentity
Source§fn clone(&self) -> InputTensorIdentity
fn clone(&self) -> InputTensorIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputTensorIdentity
impl Debug for InputTensorIdentity
Source§impl<'de> Deserialize<'de> for InputTensorIdentity
impl<'de> Deserialize<'de> for InputTensorIdentity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for InputTensorIdentity
Source§impl PartialEq for InputTensorIdentity
impl PartialEq for InputTensorIdentity
Source§impl Serialize for InputTensorIdentity
impl Serialize for InputTensorIdentity
impl StructuralPartialEq for InputTensorIdentity
Auto Trait Implementations§
impl Freeze for InputTensorIdentity
impl RefUnwindSafe for InputTensorIdentity
impl Send for InputTensorIdentity
impl Sync for InputTensorIdentity
impl Unpin for InputTensorIdentity
impl UnsafeUnpin for InputTensorIdentity
impl UnwindSafe for InputTensorIdentity
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