Error Message: Brace indexing is not supported for variables of this type. during TrainNetwork

5 Ansichten (letzte 30 Tage)
Hello Community!
For my Master Thesis I'm currently training a neural network to classify fNIRS Data.
When I'm executing a single thread to check my code, everything works just fine. But when I wanted to run my entire program, Matlab threw an error:
Brace indexing is not supported for variables of this type.
What I'm trying to do is using spmd to spread the workload over 4 workers. The entire project includes multiple analyses, not just the Neural Net, and it's being separated by multiple test subjects, so multithreading is a viable solution.
A single thread is utilizing my GPU (GTX 980 Ti) at ~6% with ~1.2GB of VRAM usage (6GB available). So I thought enough rescources are available to train 4 networks in parallel.
Is that the issue? Does Matlab simply not allow to use multiple instances on a single device?
Best wishes

Antworten (1)

Joss Knight
Joss Knight am 8 Okt. 2021
You can definitely use your GPU on multiple MATLAB workers in an SPMD block. You should show your code, looks like you have a syntax error somewhere.

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by