필터 지우기
필터 지우기

Does custom mini-batch datastore support Background Dispatch

조회 수: 2 (최근 30일)
Xie Shipley
Xie Shipley 2023년 11월 23일
답변: Venu 2023년 12월 21일
I foloow This MATLAB tutorial to create my custom mini-batch datastore, and I want to accelerate the training process.
My question is Does custom mini-batch datastore support Background Dispatch?

답변 (1개)

Venu
Venu 2023년 12월 21일
To enable background dispatch for your custom mini-batch datastore, you must ensure that it adheres to the requirements of the "Background Dispatch" interface. Your custom datastore should inherit from "matlab.io.datastore.BackgroundDispatchable" and implement the method to start reading background data. The datastore should support being divided into smaller parts that can be read independently, which is required for background dispatch.
For built-in training functions like "trainNetwork", set the "DispatchInBackground" option to "true" in the "trainingOptions" function. For custom training loops, use a "minibatchqueue" with your custom datastore and set the "DispatchInBackground" property to "true".
You must have MATLAB's Parallel Computing Toolbox because background dispatch relies on parallel workers.
Find this documentation and MATLAB Answer below for your reference:

카테고리

Help CenterFile Exchange에서 Preprocess Data for Deep Neural Networks에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by