python - TensorFlow 2 中可以用什么代替 tf.train.GradientDescentOptimizer
问题描述
tf.train.GradientDescentOptimizer
我正在尝试将我的 TensorFlow 1.4 代码转换为 TensorFlow 2,但TF 2 中没有更多代码。
tf.train.GradientDescentOptimizer 的替代品应该是什么?
我发现了同样的东西,tf.compat.v1.train.
但我不应该使用它,因为这些东西tf.compat
迟早会被删除。
解决方案
推荐阅读
- python - 带有 tkinter 的密码生成器
- apache-kafka - kafka 点燃水槽连接器
- javascript - 如何从 React JS 中的另一个组件更改同级组件的事件
- python - 替换列标题 - 熊猫
- node.js - NodeJs+Express+Mongo : 清理时事通讯电子邮件输入和 mongo
- php - 如何使用 AJAX 在不同的 HTML 元素中显示 mysql 数据
- node.js - 环回 4 缓存与 redis
- python - 如何在 python 上制作镜面光照来实现 Phong 光照?
- javascript - 无法获取 __dirname 值
- javascript - 从多个表单字段或节点js中的多个输入类型上传多个图像