pub struct BenchmarkArgs {
pub model_dir: PathBuf,
pub iterations: usize,
pub warmup: usize,
pub provider: Option<String>,
pub scenario: String,
pub pool_size: usize,
pub intra_threads: Option<usize>,
pub inter_threads: Option<usize>,
pub enable_mem_arena: bool,
pub json: bool,
}Expand description
ベンチマーク実行構成パラメータ。
Fields§
§model_dir: PathBufモデルファイル格納ディレクトリ。
iterations: usize測定反復回数。
warmup: usizeウォームアップ反復回数。
provider: Option<String>優先 Execution Provider。
scenario: String実行対象シナリオ (“all”, “single”, “batch”, “coarse”, “scratchpad”)。
pool_size: usizeセッションプールサイズ。
intra_threads: Option<usize>単一オペレータ内の並列スレッド数 (intra-op)。
inter_threads: Option<usize>複数オペレータ間の並列スレッド数 (inter-op)。
enable_mem_arena: boolCPU メモリアリーナを有効化するかどうか。
json: boolCI 連携用 JSON 形式出力フラグ。
Trait Implementations§
Source§impl Clone for BenchmarkArgs
impl Clone for BenchmarkArgs
Source§fn clone(&self) -> BenchmarkArgs
fn clone(&self) -> BenchmarkArgs
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 BenchmarkArgs
impl RefUnwindSafe for BenchmarkArgs
impl Send for BenchmarkArgs
impl Sync for BenchmarkArgs
impl Unpin for BenchmarkArgs
impl UnsafeUnpin for BenchmarkArgs
impl UnwindSafe for BenchmarkArgs
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