goodfeli / theano_exercises

Exercises for my tutorials on Theano
BSD 3-Clause "New" or "Revised" License
672 stars 324 forks source link

I have to turn theano optimization to None In order to run 01_basic_indexing #6

Open fsalmasri opened 7 years ago

fsalmasri commented 7 years ago

It was giving this error until I turned the optimization off

RuntimeError: Error doing inplace add Apply node that caused the error: GpuIncSubtensor{InplaceInc;::}(GpuFromHost.0, GpuArrayConstant{1.0}) Toposort index: 1 Inputs types: [GpuArrayType(float32, (False,)), GpuArrayType(float32, ())] Inputs shapes: [(4,), ()] Inputs strides: [(4,), ()] Inputs values: [gpuarray.array([ 0., 0., 0., 0.], dtype=float32), gpuarray.array(1.0, dtype=float32)] Outputs clients: [[HostFromGpu(gpuarray)(GpuIncSubtensor{InplaceInc;::}.0)]]