Use the file size while reading onnx models. Ensure models are loaded using APIs in model.h for consistency. (#4399)
* Use the file size while reading onnx models. Ensure models are loaded using APIs in model.h for consistency.
* Refactor existing GetFileLength in posix.cc and address PR comments.
* Fix linux build - signed/unsigned conversion