MCPcopy 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
49def rel_diff(A, B):
50 return abs(A - B) / abs(A)
51
52
53class TestPipeGradientAccumulationScaling(DistributedTest):

Callers 2

test_pipe_baseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected