padding mask掩码
时间: 2023-09-23 22:06:13 浏览: 149
深入理解Tensorflow中的masking和padding
对于padding mask掩码,它的主要作用是处理非定长序列,区分padding和非padding部分。在NLP中,padding mask用于在RNN等模型和Attention机制中的应用中,来指示哪些部分是padding的,从而在计算中忽略这些padding部分的影响。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [自然语言处理(NLP)-模型常用技巧:Mask【Padding Mask、Subsequent Mask】](https://blog.csdn.net/u013250861/article/details/120950371)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [tensorflow2中的遮盖和填充(padding&mask)以及dnamic_rnn学习笔记](https://blog.csdn.net/wuzhongqiang/article/details/114230905)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文