#[repr(C)]pub struct TensorInfo {
pub name: *const c_char,
pub layer_index: i32,
pub role: TensorRole,
pub ggml_type: u32,
pub byte_size: u64,
pub element_count: u64,
}Fields§
§name: *const c_char§layer_index: i32§role: TensorRole§ggml_type: u32§byte_size: u64§element_count: u64Trait Implementations§
Source§impl Clone for TensorInfo
impl Clone for TensorInfo
Source§fn clone(&self) -> TensorInfo
fn clone(&self) -> TensorInfo
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 moreimpl Copy for TensorInfo
Auto Trait Implementations§
impl !Send for TensorInfo
impl !Sync for TensorInfo
impl Freeze for TensorInfo
impl RefUnwindSafe for TensorInfo
impl Unpin for TensorInfo
impl UnsafeUnpin for TensorInfo
impl UnwindSafe for TensorInfo
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