Theano/Theano — Issue #266: More generic fix to ensure shapes are int64
Author: delallea
Created: 2011-12-05 15:49:56+00:00
State: open

Right now the ShapeFeature object manually casts shapes to int64.

One solution for a better way to do things would be to have an intX config option that would be the default size of integers, and could be used in multiple places in Theano, including for shapes. This way, we would have platform-independence, while allowing users to use intX=int32 if for instance some code does not work properly (or is slower) with int64 on 32-bit computers.