Skip to content

Commit ac36b34

Browse files
SINGA-140
1 parent 259422c commit ac36b34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/worker.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ int Worker::Update(int step, Param* param) {
297297
int Worker::CollectAll(int step, NeuralNet* net) {
298298
auto& layers = net->layers();
299299
for (auto& layer : layers) {
300-
if (layer->partition_id() == id_) {
300+
if (layer->partition_id() == id_ && layer->unroll_index() == 0) {
301301
for (Param* p : layer->GetParams()) {
302302
Collect(step, p);
303303
}

0 commit comments

Comments
 (0)