mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-05 19:13:01 +00:00
[fx] fixed unit tests for torch 1.12 (#1327)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user