"include/ck/utility/functional.hpp" did not exist on "c82b833d8e76094a3702046d81872132d5c4b15a"
Commit 536feeaf authored by Khalique's avatar Khalique
Browse files

remove unnecessary capture from lambda

parent cedfbd88
......@@ -1139,7 +1139,7 @@ struct onnx_parser
std::transform(data_uint16.begin(),
data_uint16.end(),
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()};
}
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