I don't understand Keras function "fit"

Issue

When I was building a DataGenerator and trying to fit it into a model, it didn’t work. So I’ve taken a look into the Keras function ‘fit’ directly. But I don’t understand what this down below code is meaning especially backslash sign. May I ask what this code is for and how that works?

with self.distribute_strategy.scope(), \
         training_utils.RespectCompiledTrainableState(self):
      # Creates a `tf.data.Dataset` and handles batch and epoch iteration.

Solution

as far as I know, the "\" is just there for the linebreak

Answered By – Seitanist

Answer Checked By – Clifford M. (AngularFixing Volunteer)

Leave a Reply

Your email address will not be published.