Fix float16 data convert issue in numpy_helper.to_array (#3002)
Fix float16 data convert issue in numpy_helper.to_array (#3002)

* handle f16 case for to_array

* fix flake8

* nit: comment

Co-authored-by: Ashwini Khade <c033833d70de1f14d546d5b23d66cc02095a83ed@microsoft.com>
onnx/onnx,onnx/onnx,onnx/onnx,onnx/onnx