Functions with state

I'm quite new to Theano and was reading the deep learning documentation here :

deep learning Theano

The function called accumulator with "inc" and state was explained really unclear, that I couldn't figure it out what happens that while the input is just one scalar, but you have both state and inc that have to be defined in the function definition. What happens every time you introduce a new number to the function?!!!

Topic theano deep-learning

Category Data Science

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.