Error Message: Brace indexing is not supported for variables of this type. during TrainNetwork
조회 수: 5 (최근 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!