#[repr(C)]pub struct RKLLMResultLastHiddenLayer {
pub hidden_states: *const f32,
pub embd_size: c_int,
pub num_tokens: c_int,
}
Expand description
@struct RKLLMResultLastHiddenLayer @brief Structure to hold the hidden states from the last layer.
Fields§
< Pointer to the hidden states (of size num_tokens * embd_size).
embd_size: c_int
< Size of the embedding vector.
num_tokens: c_int
< Number of tokens for which hidden states are stored.
Trait Implementations§
Source§impl Clone for RKLLMResultLastHiddenLayer
impl Clone for RKLLMResultLastHiddenLayer
Source§fn clone(&self) -> RKLLMResultLastHiddenLayer
fn clone(&self) -> RKLLMResultLastHiddenLayer
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 RKLLMResultLastHiddenLayer
impl Debug for RKLLMResultLastHiddenLayer
impl Copy for RKLLMResultLastHiddenLayer
Auto Trait Implementations§
impl Freeze for RKLLMResultLastHiddenLayer
impl RefUnwindSafe for RKLLMResultLastHiddenLayer
impl !Send for RKLLMResultLastHiddenLayer
impl !Sync for RKLLMResultLastHiddenLayer
impl Unpin for RKLLMResultLastHiddenLayer
impl UnwindSafe for RKLLMResultLastHiddenLayer
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