pub struct QuantizeArgs {
pub model_dir: PathBuf,
pub output_dir: PathBuf,
pub per_channel: bool,
pub verify: bool,
}Expand description
量子化実行オプション構造体。
Fields§
§model_dir: PathBuf元モデルファイル群が存在するディレクトリパス。
output_dir: PathBuf量子化後成果物バンドルの出力先ディレクトリパス。
per_channel: boolチャンネル単位での重み量子化フラグ。
verify: boolFP32 モデルとのパリティ検証を実行するフラグ。
Trait Implementations§
Source§impl Clone for QuantizeArgs
impl Clone for QuantizeArgs
Source§fn clone(&self) -> QuantizeArgs
fn clone(&self) -> QuantizeArgs
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 moreAuto Trait Implementations§
impl Freeze for QuantizeArgs
impl RefUnwindSafe for QuantizeArgs
impl Send for QuantizeArgs
impl Sync for QuantizeArgs
impl Unpin for QuantizeArgs
impl UnsafeUnpin for QuantizeArgs
impl UnwindSafe for QuantizeArgs
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