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

1 view (last 30 days)
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.

Accepted Answer

Walter Roberson
Walter Roberson on 24 Oct 2015
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 Comments
lin da da
lin da da on 25 Oct 2015
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.

Sign in to comment.

More Answers (0)

Categories

Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!