Commit 34d30a9b authored by Khalique's avatar Khalique
Browse files

formatting

parent 31a8d34e
......@@ -1133,10 +1133,10 @@ struct onnx_parser
case onnx::TensorProto::BOOL:
return literal{{shape::int32_type, dims}, t.int32_data().begin(), t.int32_data().end()};
case onnx::TensorProto::FLOAT16:
{
{
std::vector<uint16_t> data_uint16(t.int32_data().begin(), t.int32_data().end());
return literal{{shape::half_type, dims}, data_uint16.begin(), data_uint16.end()};
}
}
case onnx::TensorProto::DOUBLE:
return literal{
{shape::double_type, dims}, t.double_data().begin(), t.double_data().end()};
......
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