We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 259422c commit ac36b34Copy full SHA for ac36b34
1 file changed
src/worker.cc
@@ -297,7 +297,7 @@ int Worker::Update(int step, Param* param) {
297
int Worker::CollectAll(int step, NeuralNet* net) {
298
auto& layers = net->layers();
299
for (auto& layer : layers) {
300
- if (layer->partition_id() == id_) {
+ if (layer->partition_id() == id_ && layer->unroll_index() == 0) {
301
for (Param* p : layer->GetParams()) {
302
Collect(step, p);
303
}
0 commit comments