Note that if you want to use a random variable ``d`` that will not be updated through scan loops, you should pass this variable as a ``non_sequences`` arguments.
Note that if you want to use a random variable ``d`` that will not be updated through scan loops, you should pass this variable as a ``non_sequences`` arguments.
...
@@ -286,10 +286,10 @@ Note that if you want to use a random variable ``d`` that will not be updated th
...
@@ -286,10 +286,10 @@ Note that if you want to use a random variable ``d`` that will not be updated th
# Scan has provided us with A ** 1 through A ** k. Keep only the last
# Scan has provided us with A ** 1 through A ** k. Keep only the last
# value. Scan notices this and does not waste memory saving them.
# value. Scan notices this and does not waste memory saving them.
final_result = result[-1]
final_result = result[-1]
power = theano.function(inputs=[A, k], outputs=final_result,
power = theano.function(inputs=[A, k], outputs=final_result,