#[repr(C)]pub struct TensorShape {
pub shape: [i32; 4],
pub size: usize,
}
Fields§
§shape: [i32; 4]
§size: usize
Trait Implementations§
source§impl AsRef<[i32]> for TensorShape
impl AsRef<[i32]> for TensorShape
source§impl Clone for TensorShape
impl Clone for TensorShape
source§fn clone(&self) -> TensorShape
fn clone(&self) -> TensorShape
Returns a copy of the value. Read more
1.0.0 · 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 TensorShape
impl Debug for TensorShape
source§impl From<TensorShape> for TensorShape
impl From<TensorShape> for TensorShape
source§fn from(value: TensorShape) -> Self
fn from(value: TensorShape) -> Self
Converts to this type from the input type.
source§impl From<TensorShape> for TensorShape
impl From<TensorShape> for TensorShape
source§fn from(value: TensorShape) -> Self
fn from(value: TensorShape) -> Self
Converts to this type from the input type.
impl Copy for TensorShape
Auto Trait Implementations§
impl Freeze for TensorShape
impl RefUnwindSafe for TensorShape
impl Send for TensorShape
impl Sync for TensorShape
impl Unpin for TensorShape
impl UnwindSafe for TensorShape
Blanket Implementations§
source§impl<T> AsTensorShape for T
impl<T> AsTensorShape for T
source§fn as_tensor_shape(&self) -> TensorShape
fn as_tensor_shape(&self) -> TensorShape
Convert the array-like type to a tensor shape
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)