提交 02514c6e authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Try to fix how Null gradients are propagated in Scan

- propagate NullType when summing different gradient contributions - identify which outer outputs of the scan node implementing the grad should be Null - replace them, and the corresponding inner variables, with zeros of the appropriate size, so the scan node can be compiled and run. - introduce a difference in undefined gradient because going through a shared variable with updates, and because a NullType was returned by the internal graph.
上级 5fa90044
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论