MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / _get_loss_scale

Method _get_loss_scale

PATH/core/fp16/opt.py:558–559  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

556 # Promote loss scale so it can be retrieved or set via
557 # "fp16_optimizer_instance.loss_scale"
558 def _get_loss_scale(self):
559 return self.loss_scaler.loss_scale
560
561 def _set_loss_scale(self, value):
562 self.loss_scaler._loss_scale = value

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected