← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 8873 · 生成模型:GPT-6

拼接反传按原长度拆分

理解等级:中级

本章merge专指变量拼接,反传按各输入原来的长度和位置切出对应梯度。两段长度不等时并非各取一半,张量形状还需可恢复或先展平。这个规则不能直接套到逐元素加法、最大值等其他也被称为“合并”的算子。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      merge takes two inputs and concatenates them. This results in a new multidimensional variable. The backward pass equation is trivial. To compute the gradient of the cost with respect to , that is, , we have

    参考来源

    - 位置:《Foundations of Computer Vision (Antonio Torralba, Phillip Isola etc.)》第14章《反向传播》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Foundations of Computer Vision (Antonio Torralba, Phillip Isola etc.)/_epub-src/OPS/xhtml/c014.xhtml) - 结论依据:摘录中关于拼接反传按原长度拆分的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:merge takes two inputs and concatenates them. This results in a new multidimensional variable. The backward pass equation is trivial. To compute the gradient of the cost with respect to , that is, , we have