Skip to content

Commit 89f4bd9

Browse files
authored
4th-batch-49-代码存在梯度暂存与恢复问题 (PaddlePaddle#75783)
1 parent c376041 commit 89f4bd9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/collective/fleet/test_zero_bubble_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ def test_zero_bubble_utils_no_bias(self):
107107
o = splitbw_linear(input)
108108
o.mean().backward()
109109

110+
np.testing.assert_equal(splitbw_linear.weight.grad, None)
111+
110112
zero_bubble_utils.WeightGradStore.flush()
111113
zero_bubble_utils.WeightGradStore.pop()
112114

0 commit comments

Comments
 (0)