#[repr(C)]pub struct ggml_tensor {Show 14 fields
pub type_: ggml_type,
pub buffer: *mut ggml_backend_buffer,
pub ne: [i64; 4],
pub nb: [usize; 4],
pub op: ggml_op,
pub op_params: [i32; 16],
pub flags: i32,
pub src: [*mut ggml_tensor; 10],
pub view_src: *mut ggml_tensor,
pub view_offs: usize,
pub data: *mut c_void,
pub name: [c_char; 64],
pub extra: *mut c_void,
pub padding: [c_char; 8],
}
Fields§
§type_: ggml_type
§buffer: *mut ggml_backend_buffer
§ne: [i64; 4]
§nb: [usize; 4]
§op: ggml_op
§op_params: [i32; 16]
§flags: i32
§src: [*mut ggml_tensor; 10]
§view_src: *mut ggml_tensor
§view_offs: usize
§data: *mut c_void
§name: [c_char; 64]
§extra: *mut c_void
§padding: [c_char; 8]
Trait Implementations§
Source§impl Clone for ggml_tensor
impl Clone for ggml_tensor
Source§fn clone(&self) -> ggml_tensor
fn clone(&self) -> ggml_tensor
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 ggml_tensor
impl Debug for ggml_tensor
Source§impl PartialEq for ggml_tensor
impl PartialEq for ggml_tensor
impl Copy for ggml_tensor
impl StructuralPartialEq for ggml_tensor
Auto Trait Implementations§
impl Freeze for ggml_tensor
impl RefUnwindSafe for ggml_tensor
impl !Send for ggml_tensor
impl !Sync for ggml_tensor
impl Unpin for ggml_tensor
impl UnwindSafe for ggml_tensor
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