Hi Sri,
If you want to run a deep learning model using a GPU in MATLAB, the first step is to verify whether GPU is supported. You can quickly check this by visiting the following link:
If GPU is supported and you have the Parallel Computing Toolbox, MATLAB should automatically utilize the GPU for computations.
However, if GPU isn't supported, or if you are working with custom training loops, you will need to take an extra step. In this case, convert the data into “gpuarray” and ensure that you are using functions that support “gpuarray”.
Please refer to the below link to refer to the list of GPU supported functions:
For more detailed guidance on running deep learning models on a GPU, you might find the below documentation helpful:
Hope this will be helpful!