Skip to content

Commit f62b46f

Browse files
authored
fix (#182)
1 parent f6859c4 commit f62b46f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

paddlers/models/ppdet/modeling/assigners/uniform_assigner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def batch_p_dist(x, y, p=2):
3030
"""
3131
x = x.unsqueeze(1)
3232
diff = x - y
33-
return paddle.norm(diff, p=p, axis=list(range(2, diff.dim())))
33+
return paddle.linalg.vector_norm(diff, p=p, axis=list(range(2, diff.dim())))
3434

3535

3636
@register

0 commit comments

Comments
 (0)