フィルターのクリア

Training a deep CNN

2 ビュー (過去 30 日間)
Ali Al-Saegh
Ali Al-Saegh 2021 年 3 月 13 日
回答済み: Krishna 2024 年 6 月 6 日
Which data layout (NHWC, NCHW, or CHWN) is used in trainig a deep CNN? Is there a possibility to choose one of them for the training process?

回答 (1 件)

Krishna
Krishna 2024 年 6 月 6 日
Hello Ali,
In deep Convolutional Neural Networks (CNNs) training, the NCHW and NHWC data formats are widely utilized, with the choice between them influenced by the deep learning framework, hardware (GPUs or CPUs), and model or optimization needs.
NCHW: Number of samples, Channels, Height, Width. Preferred for NVIDIA GPUs due to optimization for CUDA cores.
NHWC: Number of samples, Height, Width, Channels. Often the default in TensorFlow, this intuitive format is favored for CPU computations or with specific accelerators.
CHWN: Less common and rarely supported in major frameworks like TensorFlow or PyTorch.
Choosing a Data Layout involves considering framework support, hardware compatibility (with NVIDIA GPUs favoring NCHW), model requirements, and performance impacts.
Please go through the following article to learn more,
Hope this helps.

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by