Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ rel_diff
Function
rel_diff
tests/unit/runtime/pipe/test_pipe.py:49–50 ·
view source on GitHub ↗
(A, B)
Source
from the content-addressed store, hash-verified
47
48
49
def
rel_diff(A, B):
50
return
abs(A - B) / abs(A)
51
52
53
class
TestPipeGradientAccumulationScaling(DistributedTest):
Callers
2
test_pipe_base
Method · 0.85
test_pipe_use_reentrant
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected