pub struct CandidateEmbeddingCache { /* private fields */ }Expand description
事前エンコードされた候補埋め込みベクトルを保持・照会するキャッシュ。
各候補の静的なテキスト説明文に対する正規化済みベクトルをキャッシュし、 推論時の内積計算をミリ秒未満で完了させる。
Implementations§
Trait Implementations§
Source§impl Clone for CandidateEmbeddingCache
impl Clone for CandidateEmbeddingCache
Source§fn clone(&self) -> CandidateEmbeddingCache
fn clone(&self) -> CandidateEmbeddingCache
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 CandidateEmbeddingCache
impl Debug for CandidateEmbeddingCache
Source§impl Default for CandidateEmbeddingCache
impl Default for CandidateEmbeddingCache
Source§fn default() -> CandidateEmbeddingCache
fn default() -> CandidateEmbeddingCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CandidateEmbeddingCache
impl RefUnwindSafe for CandidateEmbeddingCache
impl Send for CandidateEmbeddingCache
impl Sync for CandidateEmbeddingCache
impl Unpin for CandidateEmbeddingCache
impl UnsafeUnpin for CandidateEmbeddingCache
impl UnwindSafe for CandidateEmbeddingCache
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more