

def int_shape(x):
    'Returns the shape of a tensor as a tuple of\n    integers or None entries.\n    '
    shape = x.get_shape()
    return tuple([i.__int__() for i in shape])

dataset/ETHPy150Open fchollet/keras/keras/backend/tensorflow_backend.py int_shape/original