[fx] fixed unit tests for torch 1.12 (#1327)

This commit is contained in:
Frank Lee
2022-07-15 18:22:15 +08:00
committed by GitHub
parent d49708ae43
commit b2475d8c5c
17 changed files with 2 additions and 18 deletions

View File

@@ -40,7 +40,7 @@ def test_embedding():
_assert_output_shape(data, ln, patched_module.torch_nn_normalize, False, data.shape)
# test group norm
gn = torch.nn.GroupNorm(4, num_channels=2)
gn = torch.nn.GroupNorm(4, num_channels=8)
_assert_output_shape(data, gn, patched_module.torch_nn_normalize, False, data.shape)
# test batch norm 1d