batchnorm d(var)/d(mean) = 0 (#4430)

* d(var)/d(mean) = 0

* drop the number in test_schedule!
This commit is contained in:
David Hou
2024-05-04 21:25:45 -07:00
committed by GitHub
parent e2eab9c2b3
commit c0a048c044
3 changed files with 3 additions and 3 deletions

View File

@@ -208,7 +208,7 @@ class TestSchedule(unittest.TestCase):
opt.zero_grad()
img_bn.backward()
# this is too high
check_schedule(opt.schedule_step(), 18)
check_schedule(opt.schedule_step(), 17)
def test_fold_conv_relu(self):
c1 = nn.Conv2d(3,16,3)