Skip to content

Commit

Permalink
[Frontend] [PaddlePaddle] group_norm adjusts test accuracy (apache#11450
Browse files Browse the repository at this point in the history
)

* group_norm adjusts the check accuracy

* remove test skip
  • Loading branch information
heliqi authored May 31, 2022
1 parent bc14f26 commit efec735
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/python/frontend/paddlepaddle/test_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,6 @@ def forward(self, x, index):
verify_model(GatherNd(), [x_data, y_data])


@pytest.mark.skip(reason="See https://github.com/apache/tvm/issues/11435")
@tvm.testing.uses_gpu
def test_forward_group_norm():
class GroupNorm(nn.Layer):
Expand All @@ -722,8 +721,8 @@ def forward(self, inputs):
for input_shape in input_shapes:
num_channels = input_shape[1]
input_data = paddle.uniform(input_shape)
verify_model(GroupNorm(num_channels, 1), input_data)
verify_model(GroupNorm(num_channels, 2), input_data)
verify_model(GroupNorm(num_channels, 1), input_data, rtol=1e-4, atol=1e-4)
verify_model(GroupNorm(num_channels, 2), input_data, rtol=1e-4, atol=1e-4)


@tvm.testing.uses_gpu
Expand Down

0 comments on commit efec735

Please sign in to comment.