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

Commit

Permalink
Fix macro
Browse files Browse the repository at this point in the history
  • Loading branch information
leezu committed Sep 25, 2020
1 parent 05f581d commit 9101520
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/operator/nn/concat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ DMLC_REGISTER_PARAMETER(ConcatParam);
[](const NodeAttrs& attrs) { \
const ConcatParam& params = nnvm::get<ConcatParam>(attrs.parsed); \
std::vector<std::string> ret; \
ret.reserve(params.num_args); \
for (int i = 0; i < params.num_args; ++i) { \
ret.push_back(std::string("arg") + std::to_string(i)); \
} \
Expand Down
1 change: 1 addition & 0 deletions src/operator/numpy/np_init_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ NNVM_REGISTER_OP(_npi_atleast_##N##d) \
[](const nnvm::NodeAttrs& attrs) { \
int num_args = nnvm::get<AtleastNDParam>(attrs.parsed).num_args; \
std::vector<std::string> ret; \
ret.reserve(num_args); \
for (int i = 0; i < num_args; i++) { \
ret.push_back(std::string("ary") + std::to_string(i)); \
} \
Expand Down

0 comments on commit 9101520

Please sign in to comment.