Why can'I put build in function (like sim..neural ) in arrayfun to compute with gpu?

조회 수: 1 (최근 30일)
Why can'I put build in function (like sim..neural ) in arrayfun to compute with gpu? It said that net can't be translated to gpu.How I supposed to do this? I really need this.I need to simulate many neural network in one time. And don't tell me use sim(net,x,'useGPU','yes') I have tried it. But it runs more slower. I think it owing to my net is too small. But my set is very large. Even when one 'sim' only take 0.01 second. When I run 1000 set,it runs for 10 second!! But they are paralleled.It's very inefficient.

채택된 답변

Walter Roberson
Walter Roberson 2015년 10월 24일
If you have a bicycle and you put a sticker on the frame that says "Turbo-charger enabled!" then that doesn't mean that the bicycle can actually use a turbo charger. At the very least you would need to reinforce the frame at strategic points to support the extra thrust.
  댓글 수: 6
lin da da
lin da da 2015년 10월 25일
Yes,you understand correctly. It seems not helpful. Maybe I should write by myself. But I have another question. It said arrayfun is element wise. a.*b+c. All a,b,c is a vector. But if I want c to be a modified constant. How should I do? If you have a little know about neural network,maybe you can figure out what I am talking about.That c is network's weight.All the weight are the same,but it will change after training.
lin da da
lin da da 2015년 10월 26일
Oh my god!! What am I so stupid. I have already found my answer.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by