Commit 536feeaf authored by Khalique's avatar Khalique
Browse files

remove unnecessary capture from lambda

parent cedfbd88
...@@ -1139,7 +1139,7 @@ struct onnx_parser ...@@ -1139,7 +1139,7 @@ struct onnx_parser
std::transform(data_uint16.begin(), std::transform(data_uint16.begin(),
data_uint16.end(), data_uint16.end(),
std::back_inserter(data_half), std::back_inserter(data_half),
[&](uint16_t raw_val) { return *reinterpret_cast<half*>(&raw_val); }); [](uint16_t raw_val) { return *reinterpret_cast<half*>(&raw_val); });
return literal{{shape::half_type, dims}, data_half.begin(), data_half.end()}; return literal{{shape::half_type, dims}, data_half.begin(), data_half.end()};
} }
case onnx::TensorProto::DOUBLE: case onnx::TensorProto::DOUBLE:
......
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