(self)
Iterate over parameters in (W, b) tuples.
Iterate over parameters in (W, b) tuples.
Iterate over parameters in ( W b ) tuples .
def _parameter_iter(self):
        """Iterate over parameters in (W, b) tuples."""
        # By defining parameters as an iterable zip(parameters, parameters)
        # returns the next two elements as a group.
        parameters = iter(self.parameters)
        for W, b in zip(parameters, parameters):
            yield W, b

        # Yield parameters of the output layer
        yield self.parameters[-1], None
def _parameter_iter ( self ) : # By defining parameters as an iterable zip(parameters, parameters) # returns the next two elements as a group. parameters = iter ( self . parameters ) for W , b in zip ( parameters , parameters ) : yield W , b # Yield parameters of the output layer yield self . parameters [ - 1 ] , None