add_dl_pruning_batchAddDlPruningBatchAddDlPruningBatchadd_dl_pruning_batchT_add_dl_pruning_batch
説明
add_dl_pruning_batchAddDlPruningBatchAddDlPruningBatchadd_dl_pruning_batchT_add_dl_pruning_batch — ディープラーニングモデルのプルーニングスコアを計算します。
書式
add_dl_pruning_batch( dl_model DLModelHandleToPrune, dl_pruning DLPruningHandle, dict DLSampleBatch )void AddDlPruningBatch( const HTuple& DLModelHandleToPrune, const HTuple& DLPruningHandle, const HTuple& DLSampleBatch )static void HOperatorSet.AddDlPruningBatch( HTuple DLModelHandleToPrune, HTuple DLPruningHandle, HTuple DLSampleBatch )def add_dl_pruning_batch( dlmodel_handle_to_prune: HHandle, dlpruning_handle: HHandle, dlsample_batch: Sequence[HHandle] ) -> None
Herror T_add_dl_pruning_batch( const Htuple DLModelHandleToPrune, const Htuple DLPruningHandle, const Htuple DLSampleBatch )
void HDlModel::AddDlPruningBatch( const HDlPrune& DLPruningHandle, const HDictArray& DLSampleBatch ) const
void HDlPrune::AddDlPruningBatch( const HDlModel& DLModelHandleToPrune, const HDictArray& DLSampleBatch ) const
void HDlModel.AddDlPruningBatch( HDlPrune DLPruningHandle, HDict[] DLSampleBatch )
void HDlPrune.AddDlPruningBatch( HDlModel DLModelHandleToPrune, HDict[] DLSampleBatch )
説明
add_dl_pruning_batchAddDlPruningBatch はディープラーニングモデル DLModelHandleToPruneDLModelHandleToPrunedlmodel_handle_to_prune
のプルーニングスコアを計算します。
より正確にはスコアはDLSampleBatchDLSampleBatchdlsample_batchで指定された画像で計算され、
add_dl_pruning_batchAddDlPruningBatchを呼び出すたびにプルーニングデータハンドルDLModelHandleToPruneDLModelHandleToPrunedlmodel_handle_to_pruneで
内部的に累積されます。
パラメータDLModelHandleToPruneDLModelHandleToPrunedlmodel_handle_to_pruneは使用するディープラーニングモデルを指定します。
add_dl_pruning_batchAddDlPruningBatchは'classification'"classification"の
ディープラーニングモデルのみをサポートすることに注意してください。
パラメータDLPruningHandleDLPruningHandledlpruning_handleはプルーニングデータハンドルを指定します。
このハンドルは累積スコアやプルーニング方法などの情報を渡すために使用されます。
実装されたプルーニング方法の詳細についてはcreate_dl_pruningCreateDlPruningを参照してください。
パラメータDLSampleBatchDLSampleBatchdlsample_batchはスコアの計算に基づく入力画像を含むバッチを指定します。
TupleDLSampleBatchDLSampleBatchdlsample_batch内の画像の数はモデルパラメータ'batch_size'"batch_size"に設定された値と
同じである必要があることに注意してください。
ディープラーニングに基づく分類のコンセプトの説明については、チャプターDeep Learningのイントロダクションを参照してください。
実行情報
実行情報
パラメーター
DLModelHandleToPruneDLModelHandleToPrunedlmodel_handle_to_prune (input_control) dl_model → (handle)HTuple (HHandle)HDlModel, HTuple (IntPtr)HHandleHtuple (handle)
プルーニングするディープラーニングモデルのハンドル
DLPruningHandleDLPruningHandledlpruning_handle (input_control) dl_pruning → (handle)HTuple (HHandle)HDlPrune, HTuple (IntPtr)HHandleHtuple (handle)
プルーニングデータハンドル
DLSampleBatchDLSampleBatchdlsample_batch (input_control) dict-array → (handle)HTuple (HHandle)HDict, HTuple (IntPtr)Sequence[HHandle]Htuple (handle)
入力画像を含むディクショナリのTuple
他のオペレーターとの組み合わせ
組み合わせ
前処理の候補
read_dl_modelReadDlModel, create_dl_pruningCreateDlPruning, set_dl_pruning_paramSetDlPruningParam
後処理の候補
get_dl_pruning_paramGetDlPruningParam, gen_dl_pruned_modelGenDlPrunedModel
モジュール
Deep Learning Professional