gpt4 book ai didi

tensorflow - TensorFlow 中的 Wengert 列表在哪里?

转载 作者:行者123 更新时间:2023-12-05 00:51:39 40 4
gpt4 key购买 nike

TensorFlow使用反向模式自动微分(反向模式AD),如图https://github.com/tensorflow/tensorflow/issues/675 .
反向模式 AD 需要一个称为 Wengert 列表的数据结构 - 参见 https://en.wikipedia.org/wiki/Automatic_differentiation#Reverse_accumulation .
但是,使用关键字“Wengert List”搜索 TensorFlow 存储库,我一无所获。
他们使用不同的名称,还是摆脱了温格特名单?如果是这样,如何?

最佳答案

AD 术语非常古老。它是在没有 Python 并且事情很复杂的时候发明的。如今,您可以为此目的使用常规的 Python 列表。

反向 AD 的实现在 gradients gradients_impl.py 的功能here

用于存储磁带的数据结构在 line 532 上初始化这是一个 Python 队列

# Initialize queue with to_ops.
queue = collections.deque()

关于tensorflow - TensorFlow 中的 Wengert 列表在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43863111/

40 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com