kfac/python/ops/layer_collection.py [443:449]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    if self._finalized:
      raise ValueError("You cannot register additional losses or layers after "
                       "LayerCollection is finalized. Finalization happens "
                       "after the estimator or optimizer object first uses "
                       "the data in the LayerCollection. For example, when "
                       "the minimize() method is called in "
                       "PeriodicInvCovUpdateKfacOpt.")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



kfac/python/ops/layer_collection.py [524:530]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    if self._finalized:
      raise ValueError("You cannot register additional losses or layers after "
                       "LayerCollection is finalized. Finalization happens "
                       "after the estimator or optimizer object first uses "
                       "the data in the LayerCollection. For example, when "
                       "the minimize() method is called in "
                       "PeriodicInvCovUpdateKfacOpt.")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



