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

Commit

Permalink
Fix clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
meta-project-ci committed Feb 5, 2020
1 parent 2090398 commit 69b989f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/api_lang.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ MXNET_REGISTER_GLOBAL("_Array")
if (args[i].type_code() != kNull) {
data.push_back(args[i].operator ObjectRef());
} else {
data.push_back(ObjectRef(nullptr));
data.emplace_back(nullptr);
}
}
auto node = make_object<ArrayNode>();
Expand Down
3 changes: 2 additions & 1 deletion src/api/api_npi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ MXNET_REGISTER_API("_npi.tensordot")
if (isscalar) {
mxnet::op::TensordotIntAxesParam param;
param.axes = args[2].operator int();
attrs.parsed = std::move(param);
// we directly copy TensordotIntAxesParam, which is trivially-copyable
attrs.parsed = param;
} else {
mxnet::op::TensordotParam param;
const runtime::ObjectRef ref = args[2].operator runtime::ObjectRef();
Expand Down

0 comments on commit 69b989f

Please sign in to comment.