Skip to content

Commit

Permalink
[Cherry-pick] #1579 (#1580)
Browse files Browse the repository at this point in the history
  • Loading branch information
juncaipeng authored Dec 1, 2021
1 parent 5e6cab5 commit 7e37f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddleseg/models/backbones/mix_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def __init__(self,

# transformer encoder
dpr = [
x.item() for x in paddle.linspace(0, drop_path_rate, sum(depths))
x.numpy() for x in paddle.linspace(0, drop_path_rate, sum(depths))
] # stochastic depth decay rule
cur = 0
self.block1 = nn.LayerList([
Expand Down

0 comments on commit 7e37f98

Please sign in to comment.