Skip to content

Commit

Permalink
Merge pull request apache#12 from heliqi/paddle_frontend
Browse files Browse the repository at this point in the history
black formatting
  • Loading branch information
jiangjiajun authored Aug 18, 2021
2 parents c2d4bf5 + be0e04e commit 2a82fdb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/tvm/relay/frontend/paddlepaddle.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,9 @@ def convert_layer_norm(g, op, block):
scale_input = op.input("Scale")

x_shape = infer_shape(x)
assert (
begin_norm_axis in (len(x_shape) - 1, -1)
assert begin_norm_axis in (
len(x_shape) - 1,
-1,
), "Support only normalization over last one dimension."

if bias_input:
Expand Down

0 comments on commit 2a82fdb

Please sign in to comment.