Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/zai-org/CodeGeeX
/ get_loss_scale
Method
get_loss_scale
codegeex/megatron/optimizer/optimizer.py:94–96 ·
view source on GitHub ↗
The output should be a cuda tensor of size 1.
(self)
Source
from the content-addressed store, hash-verified
92
93
@abstractmethod
94
def
get_loss_scale(self):
95
""
"The output should be a cuda tensor of size 1."
""
96
pass
97
98
def
scale_loss(self, loss):
99
""
"Simple scaling."
""
Callers
1
scale_loss
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected