I have the same problem could some please advise ? 

On Thursday, August 11, 2016 at 2:48:31 AM UTC+1, Jason T wrote:
>
> Hi,
>
> I'm learning Theano and was working through the first example in the scan 
> documentation: 
>
> import theanoimport theano.tensor as T
> k = T.iscalar("k")A = T.vector("A")
> # Symbolic description of the resultresult, updates = theano.scan(fn=lambda 
> prior_result, A: prior_result * A,
>                               outputs_info=T.ones_like(A),
>                               non_sequences=A,
>                               n_steps=k)
> # We only care about A**k, but scan has provided us with A**1 through A**k.# 
> Discard the values that we don't care about. Scan is smart enough to# notice 
> this and not waste memory saving them.final_result = result[-1]
> # compiled function that returns A**kpower = theano.function(inputs=[A,k], 
> outputs=final_result, updates=updates)
> print(power(range(10),2))print(power(range(10),4))
>
>
> and I'm getting the error:
>
> ValueError: ('The following error happened while compiling the node', 
> forall_inplace,gpu,scan_fn}(Elemwise{maximum,no_inplace}.0, 
> GpuIncSubtensor{InplaceSet;:int64:}.0, GpuFromHost.0), '\n', 'numpy.dtype has 
> the wrong size, try recompiling')
>
>
> I'm running the latest version of Theano from github and it works for an 
> example I wrote for a convnet on MNIST, but so far I haven't gotten any 
> examples with scan to work yet. A similar error appears if I try to run 
> anything with scan on the CPU as well. Any ideas what could be causing the 
> error?
>
> Thanks,
>
> Jason
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to