![](/img/trans.png)
[英]Tensorflow does not detect multiple CPU cores with tf.distribute.MirroredStrategy()
[英]Does `tf.distribute.MirroredStrategy` have an impact on training outcome?
我不明白MirroredStrategy
是否對訓練結果有任何影響。
我的意思是:在單個設備上訓練的 model 是否與在多個設備上訓練的 model 相同?
我認為它應該是相同的 model,因為它只是梯度的分布式計算,不是嗎?
是的,在單個 GPU 和多個 GPU(在單個機器上)上訓練的 model 是相同的。 也就是說,根據文檔,model 中的變量在所有 GPU 上被復制和同步。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.