Commit 78f248e4 authored by wsttiger's avatar wsttiger
Browse files

Clang-Tidy fix

parent 7e88e866
...@@ -317,7 +317,7 @@ struct onnx_parser ...@@ -317,7 +317,7 @@ struct onnx_parser
std::vector<std::size_t> dims(t.dims().begin(), t.dims().end()); std::vector<std::size_t> dims(t.dims().begin(), t.dims().end());
if(t.has_raw_data()) if(t.has_raw_data())
{ {
std::string s = t.raw_data(); const std::string& s = t.raw_data();
switch(t.data_type()) switch(t.data_type())
{ {
case onnx::TensorProto::UNDEFINED: throw std::runtime_error(""); case onnx::TensorProto::UNDEFINED: throw std::runtime_error("");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment