阅读https://github.com/tensorflow/models/blob/master/tutorials/image/cifar10/cifar10_multi_gpu_train.py的功能average_gradients
以下注释提供:Note that this function provides a synchronization point across all towers.
是功能average_gradients
阻塞调用,并是什么意思synchronization point
?Tensorflow CIFAR同步点
我认为这是一个阻塞呼叫,因为为了计算梯度的平均值,每个梯度都必须单独计算?但是,等待所有单个渐变计算的阻止代码在哪里?