Commit dec385e9 authored by Paul's avatar Paul
Browse files

Formatting

parent 2bd42086
...@@ -1546,8 +1546,8 @@ struct onnx_parser ...@@ -1546,8 +1546,8 @@ struct onnx_parser
literal s = parse_value(attr); literal s = parse_value(attr);
s.visit([&](auto v) { copy(v, std::back_inserter(result)); }); s.visit([&](auto v) { copy(v, std::back_inserter(result)); });
// Clamp large indices to -1 // Clamp large indices to -1
for(auto&& x:result) for(auto&& x : result)
if (x > int64_t{std::numeric_limits<std::int32_t>::max()} / 2) if(x > int64_t{std::numeric_limits<std::int32_t>::max()} / 2)
x = -1; x = -1;
return result; return result;
} }
......
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