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 atf.data.Dataset
, theself.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.