pub enum CachedTensorPayload {
Raw(Arc<Value>),
Fp16(Arc<Vec<f16>>),
Int8Symmetric {
quantized: Arc<Vec<i8>>,
scales: Arc<Vec<f32>>,
},
}Expand description
キャッシュ内に保持されるテンソル実体ペイロード。
Variants§
Raw(Arc<Value>)
非圧縮の Value。直接 IoBinding::bind_input へゼロコピーで受け渡し可能。
Fp16(Arc<Vec<f16>>)
FP16 圧縮済みテンソルデータ。
Int8Symmetric
トークン単位対称 INT8 量子化済みテンソルデータ。
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CachedTensorPayload
impl !UnwindSafe for CachedTensorPayload
impl Freeze for CachedTensorPayload
impl Send for CachedTensorPayload
impl Sync for CachedTensorPayload
impl Unpin for CachedTensorPayload
impl UnsafeUnpin for CachedTensorPayload
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
§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