Skip to content

Commit

Permalink
refine paddle.shape (PaddlePaddle#8926)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghuancoder authored Apr 15, 2024
1 parent 3ee3e4a commit a41023e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ppdet/modeling/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,6 @@ def channel_shuffle(x, groups):


def get_static_shape(tensor):
shape = tensor.shape
shape = paddle.shape(tensor)
shape.stop_gradient = True
return shape

0 comments on commit a41023e

Please sign in to comment.