diff --git a/theanoTUT/theano6_shared_variable.py b/theanoTUT/theano6_shared_variable.py index 69c27df..8541968 100644 --- a/theanoTUT/theano6_shared_variable.py +++ b/theanoTUT/theano6_shared_variable.py @@ -12,7 +12,7 @@ import theano import theano.tensor as T -state = theano.shared(np.array(0,dtype=np.float64), 'state') # inital state = 0 +state = theano.shared(np.array(0,dtype=np.float64), 'state') # initial state = 0 inc = T.scalar('inc', dtype=state.dtype) accumulator = theano.function([inc], state, updates=[(state, state+inc)])