Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy committed Feb 11, 2020
1 parent cb38948 commit 3c6cf57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/tvm/runtime/packed_func.h
Original file line number Diff line number Diff line change
Expand Up @@ -716,11 +716,11 @@ class TVMRetValue : public TVMPODValue_ {
return *this;
}
TVMRetValue& operator=(std::string value) {
this->SwitchToClass(kTVMStr, std::move(value));
this->SwitchToClass(kTVMStr, value);
return *this;
}
TVMRetValue& operator=(TVMByteArray value) {
this->SwitchToClass(kTVMBytes, std::move(std::string(value.data, value.size)));
this->SwitchToClass(kTVMBytes, std::string(value.data, value.size));
return *this;
}
TVMRetValue& operator=(NDArray other) {
Expand Down

0 comments on commit 3c6cf57

Please sign in to comment.