Skip to content

Commit

Permalink
Yao dev (PaddlePaddle#1899)
Browse files Browse the repository at this point in the history
* add filter_by_instag out_val_ifempty cn api test=develop

* change out_val_ifempty to out_val_if_empty in filter_by_instag test=develop
  • Loading branch information
yaoxuefeng6 authored Mar 11, 2020
1 parent 07ecde5 commit 8dcb88a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/fluid/api_cn/layers_cn/filter_by_instag_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Lod为[1,1,1,1],filter tags为[1],从上面的定义中,带有标签
- **ins_tag** (Variable) - 输入变量(LoDTensor),通常为1维列表,通过lod info来分割。
- **filter_tag** (Variable) - 输入变量(1D Tensor/List),通常为持有tags的列表。
- **is_lod** (Bool) – 指定样本是否为lod tensor的布尔值。
- **out_val_ifempty** (Int64) - 如果batch内样本被全部过滤,输出会被指定成这个值。
- **out_val_if_empty** (Int64) - 如果batch内样本被全部过滤,输出会被指定成这个值。

返回:过滤之后的样本(LoDTensor)和 损失权重(Tensor)。

Expand Down

0 comments on commit 8dcb88a

Please sign in to comment.