Skip to content

Commit e959587

Browse files
committed
fix win UT
1 parent af506b9 commit e959587

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/legacy_test/test_weight_decay.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ def bow_net(
6262
bow = paddle.static.nn.sequence_lod.sequence_pool(
6363
input=emb, pool_type='sum'
6464
)
65-
bow_tanh = paddle.tanh(bow)
66-
fc_1 = paddle.static.nn.fc(x=bow_tanh, size=hid_dim, activation="tanh")
67-
fc_2 = paddle.static.nn.fc(x=fc_1, size=hid_dim2, activation="tanh")
65+
bow_silu = paddle.nn.functional.silu(bow)
66+
fc_1 = paddle.static.nn.fc(x=bow_silu, size=hid_dim, activation="silu")
67+
fc_2 = paddle.static.nn.fc(x=fc_1, size=hid_dim2, activation="silu")
6868
prediction = paddle.static.nn.fc(
6969
x=[fc_2], size=class_dim, activation="softmax"
7070
)

0 commit comments

Comments
 (0)