(self, slots)
Sets the slots of all optimizers.
Sets the slots of all optimizers.
Sets the slots of all optimizers .
def slots(self, slots):
    """Sets the slots of all optimizers."""
    for ((s_opt, r_opts), (s_slots, r_slots)) in zip(
        self._optimizers, slots[:-1]):
      for (opt, slot) in zip([s_opt] + r_opts, [s_slots] + r_slots):
        opt.slots = slot
    self._loss_opt.slots = slots[-1]
def slots ( self , slots ) : for ( ( s_opt , r_opts ) , ( s_slots , r_slots ) ) in zip ( self . _optimizers , slots [ : - 1 ] ) : for ( opt , slot ) in zip ( [ s_opt ] + r_opts , [ s_slots ] + r_slots ) : opt . slots = slot self . _loss_opt . slots = slots [ - 1 ]