Skip to content

Commit c589787

Browse files
author
Mofan Zhou
committedJul 29, 2016
update theano TUT
1 parent 4bea7db commit c589787

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎theanoTUT/theano6_shared_variable.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import theano.tensor as T
1313

1414
state = theano.shared(np.array(0,dtype=np.float64), 'state') # inital state = 0
15-
inc = T.scalar('inc', dtype=state.dtype) # integer scalar (dscalar = decimal scalar)
15+
inc = T.scalar('inc', dtype=state.dtype)
1616
accumulator = theano.function([inc], state, updates=[(state, state+inc)])
1717

1818
# to get variable value

0 commit comments

Comments
 (0)
Please sign in to comment.