Error Message: Brace indexing is not supported for variables of this type. during TrainNetwork
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
Joss Knight
2021-10-8
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!