unsqueeze(-1)
时间: 2023-10-16 11:07:18 浏览: 89
yolov9-c.rar
5星 · 资源好评率100%
unsqueeze(-1)是一个在PyTorch中用于增加维度的操作。具体来说,它会在张量的最后一维上添加一个维度。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [pytorch-unsqueeze用法](https://blog.csdn.net/shou_po_lan/article/details/102502869)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [squeeze 、unsequeeze](https://blog.csdn.net/weixin_42187536/article/details/123858387)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文