Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
[Numpy] fix test_operator_gpu.test_upsampling_bilinear_with_type (#14557
Browse files Browse the repository at this point in the history
)

* Fix test_operator_gpu.test_upsampling_bilinear_with_type

* Address comments
  • Loading branch information
junrushao authored and reminisce committed Apr 4, 2019
1 parent cc078c2 commit 29281cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/operator/nn/deconvolution-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ struct DeconvolutionParam : public dmlc::Parameter<DeconvolutionParam> {
}
}
} else {
for (size_t i = 0; i < ndim; i++) {
o_pad[i] = pad[i];
o_adj[i] = adj[i];
for (int i = 0; i < (int) ndim; i++) {
o_pad[i] = i < pad.ndim() ? pad[i] : 0;
o_adj[i] = i < adj.ndim() ? adj[i] : 0;
}
}
}
Expand Down

0 comments on commit 29281cd

Please sign in to comment.