Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
daquexian committed Jun 18, 2019
1 parent b33f375 commit 8cab557
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/onnx2daq/OnnxConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ std::vector<std::vector<int>> OnnxConverter::GetSupportedNodes(

std::vector<std::vector<int>> supported_node_vecs;
std::vector<int> supported_node_vec;
for (size_t i = 0; i < model_proto.graph().node_size(); i++) {
for (int i = 0; i < model_proto.graph().node_size(); i++) {
bool supported;
std::string error_msg;
std::tie(supported, error_msg) =
Expand Down Expand Up @@ -1175,6 +1175,6 @@ void OnnxConverter::Save(const std::string &filename) {
std::unique_ptr<uint8_t[]> OnnxConverter::GetBuf() {
std::unique_ptr<uint8_t[]> ptr(new uint8_t[builder_.GetSize()]);
memcpy(ptr.get(), builder_.GetBufferPointer(), builder_.GetSize());
return std::move(ptr);
return ptr;
}
} // namespace dnn

0 comments on commit 8cab557

Please sign in to comment.