镜像战略与中心存储战略的区别

2024-09-30 22:28:38 发布

您现在位置:Python中文网/ 问答频道 /正文

我阅读了CentralStorageStrategyMirroredStrategy的文档,但无法理解它们之间差异的本质。你知道吗

MirroredStrategy中:

Each variable in the model is mirrored across all the replicas.

CentralStorageStrategy中:

Variables are not mirrored, instead they are placed on the CPU and operations are replicated across all local GPUs.

资料来源:https://www.tensorflow.org/guide/distributed_training

这在实践中意味着什么?什么是CentralStorageStrategy的用例?如果在这个策略中变量被放置在CPU上,那么训练是如何工作的?你知道吗


Tags: thein文档model差异cpuallvariable