

def get_output_shape_for(self, input_shape):
    if (not all(input_shape[1:])):
        raise Exception((('The shape of the input to "Flatten" is not fully defined (got ' + str(self[1:])) + '. Make sure to pass a complete "input_shape" or "batch_input_shape" argument to the first layer in your model.'))
    return (input_shape[0], np.prod(input_shape[1:]))

dataset/ETHPy150Open fchollet/keras/keras/layers/core.py Flatten.get_output_shape_for/VarMisuse@36/74 `input_shape`->`self`