且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

每次使用TensorFlow训练CNN(MNIST数据集)时,如何获得相同的损失值?

更新时间:2022-06-26 01:22:39

感谢@AlexandrePassos评论,我在TensorFlow中搜索确定性/非确定性操作.

Thanks to @AlexandrePassos comment, I search for deterministic/ non-deterministic operations in TensorFlow.

因此,目前所有使用CUDA原子并在GPU上运行的操作都是不确定的.
看到此链接: https://github.com/tensorflow/tensorflow/issues/3103

So at the moment all operations which using CUDA atomics and running on GPU, are non-deterministic.
See this link: https://github.com/tensorflow/tensorflow/issues/3103

如果有人知道在GPU上使用TensorFlow和确定性操作来实现CNN的方法,请:

If somebody knows a way to realize a CNN with TensorFlow on GPU and with deterministic operations, please: How to create a CNN with deterministic operations in TensorFlow on a GPU?