深度学习课程知识点漏洞总结

pytorch函数

gather

函数的用法为torch.gather(input, dim, index, out=None) → Tensor
Parameters:

    input (Tensor) – The source tensor
    dim (int) – The axis along which to index
    index (LongTensor) – The indices of elements to gather
    out (Tensor, optional) – Destination tensor

例如


在转one-hot编码时会用到gather函数

scatter

scatter_(input, dim, index, src)将src中数据根据index中的索引按照dim的方向填进input中。
https://blog.csdn.net/qq_16234613/article/details/79827006

循环神经网络

隐节点之间的权重是共享的,而非每两个之间存在一个单独的权重矩阵。

NLP时序采样方法 通常由随机采样和相邻采样两种方法

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容