MATLAB Answers

Speed of custom training loop

6 views (last 30 days)
Sangmin Lee
Sangmin Lee on 2 Sep 2020
I test several code using 'Train Network Using Custom Training Loop'. I found it is severely slower than the method using 'nnet.cnn.layer.Layer ' class layer and 'trainNetwork' function.
Is it ture that 'dlnetwork' class is slower than 'nnet.cnn.layer.Layer ' class? or is it because of the example is using for-loop explicitly instead of using the built-in 'trainNetwork' function?
If I am wrong, please correct me or it would be great to improve speed of algorithm.


Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!