Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in AI and Deep Learning by (50.2k points)

I am designing a neural network and am trying to determine if I should write it in such a way that each neuron is its own 'process' in Erlang, or if I should just go with C++ and run a network in one thread (I would still use all my cores by running an instance of each network in its own thread).

Is there a good reason to give up the speed of C++ for the asynchronous neurons that Erlang offers?

1 Answer

0 votes
by (108k points)

There’s no reason to make the updates synchronous in a feedforward method, (like backpropagation, Deep NNs, Convolutional NNs)  means that if you’ve implemented the system in parallel, then update whenever and wherever you like - it’s unlikely to alter the result. Mind you, splitting the nodes across processors might not be quite the right thing to do, as you generally need to balance computation and communication to get a good speed-up from multiple processors.

The question becomes (more) interesting when you consider recurrent networks. But the real neural systems are not synchronous so that asynchronous update is suitable - just ensure that the asynchronous update does not mean that some units only rarely get re-evaluated.

If you wish to know about Neural Network then visit this Neural Network Tutorial.

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...