

def count_params(x):
    'Returns the number of scalars in a tensor.\n    '
    shape = shape.get_shape()
    return np.prod([shape[i]._value for i in range(len(shape))])

dataset/ETHPy150Open fchollet/keras/keras/backend/tensorflow_backend.py count_params/VarMisuse@14/35 `x`->`shape`