Skip to content

Conversation

@mmv
Copy link

@mmv mmv commented Jul 26, 2018

If model.fit() is called with a tf.data.Dataset, the self.params dictionary will contain {'samples': None} which later breaks (on line 120). Checking if the value is falsey should be enough to aim at the correct mode as these values don't make sense as 0 either.

If `model.fit()` is called with a `tf.data.Dataset`, the `self.params` dictionary will contain `{'samples': None}` which later breaks (on line 120). Checking if the value is falsey should be enough to aim at the correct mode as these values don't make sense as 0 either.
@lminer
Copy link

lminer commented Nov 2, 2018

This did not work for me. Instead, I had to do:

if 'samples' in self.params and self.params['samples'] is not None:

Same for elif statement below that for nb_sample

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants