TF 2 API 中的 tensorflow.contrib.graph_editor?

Kib*_*Kim 8 tensorflow tensorflow2.0

据我了解,tensorflow.contrib 已在 TF 2.0 API 中删除。TF 1.0 API 中 tensorflow.contrib.graph_editor 的新 2.0 替代品是什么?https://www.tensorflow.org/api_docs/python/tf/contrib/graph_editor

Rad*_*oda 1

据我从文档中了解到的另一种方法是“跟踪变量!” 。创建图形时,您现在负责引用它的节点。