def count_params(x):
    shape = x.get_shape()
    return np.prod([shape[i]._value for i in range(len(shape))])
Largest area rectangle in a binary matrix
dataset/ETHPy150Open fchollet/keras/keras/backend/tensorflow_backend.py/count_params--crossover with--dataset/ETHPy150Open jilljenn/tryalgo/tryalgo/rectangles_from_grid.py/rectangles_from_grid