def int_shape(x):
    shape = x.get_shape()
    return tuple([i.__int__() for i in shape])
Returns the shape of a tensor as a tuple of
dataset/ETHPy150Open fchollet/keras/keras/backend/tensorflow_backend.py/int_shape