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

Commit

Permalink
Fix for test_lans failure (#20036)
Browse files Browse the repository at this point in the history
Make NumTensors function unique to multi_lans.cc & multi_lamb.cc.
  • Loading branch information
akarbown authored Mar 16, 2021
1 parent aa92db0 commit b8dc162
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/operator/contrib/multi_lamb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ std::vector<std::string> LAMBParamToVector(uint32_t num_tensors,
return ret;
}

inline uint32_t NumTensors(const nnvm::NodeAttrs& attrs) {
static inline uint32_t NumTensors(const nnvm::NodeAttrs& attrs) {
return static_cast<uint32_t>(dmlc::get<MultiLAMBParam>(attrs.parsed).num_tensors);
}

Expand Down
2 changes: 1 addition & 1 deletion src/operator/contrib/multi_lans.cc
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ std::vector<std::string> LANSParamToVector(uint32_t num_tensors,
return ret;
}

inline uint32_t NumTensors(const nnvm::NodeAttrs& attrs) {
static inline uint32_t NumTensors(const nnvm::NodeAttrs& attrs) {
return static_cast<uint32_t>(dmlc::get<MultiLANSParam>(attrs.parsed).num_tensors);
}

Expand Down

0 comments on commit b8dc162

Please sign in to comment.