提交 fef47dcc 编写于 作者: 文幕地方's avatar 文幕地方

rm view

上级 d9f1fed7
...@@ -121,9 +121,9 @@ class PSELoss(nn.Layer): ...@@ -121,9 +121,9 @@ class PSELoss(nn.Layer):
if neg_num == 0: if neg_num == 0:
selected_mask = training_mask selected_mask = training_mask
selected_mask = selected_mask.view( selected_mask = selected_mask.reshape(
1, selected_mask.shape[0], [1, selected_mask.shape[0], selected_mask.shape[1]]).astype(
selected_mask.shape[1]).astype('float32') 'float32')
return selected_mask return selected_mask
neg_score = paddle.masked_select(score, gt_text <= 0.5) neg_score = paddle.masked_select(score, gt_text <= 0.5)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册