diff options
author | Chih-Hsuan Yen | 2022-05-30 01:05:56 +0800 |
---|---|---|
committer | Chih-Hsuan Yen | 2022-05-30 01:07:43 +0800 |
commit | 8d347bed37e512e7a9bdfbeea35d5cb47fcfb4a9 (patch) | |
tree | f2c583166c1824a648a670607d3be3b7dc45e280 /protobuf-3.20.diff | |
parent | 7d7cb94685203169a7ae660620b35ed0bb484e26 (diff) | |
download | aur-8d347bed37e512e7a9bdfbeea35d5cb47fcfb4a9.tar.gz |
misc improvements
* Make CUDA build optional as requested [1]
* Use a better fix for protobuf 3.20 compatibility
* Fix GCC 12 build errors
[1] https://aur.archlinux.org/pkgbase/python-onnxruntime#comment-858912
Diffstat (limited to 'protobuf-3.20.diff')
-rw-r--r-- | protobuf-3.20.diff | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/protobuf-3.20.diff b/protobuf-3.20.diff deleted file mode 100644 index 908f06e14105..000000000000 --- a/protobuf-3.20.diff +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/onnxruntime/core/framework/tensorprotoutils.cc b/onnxruntime/core/framework/tensorprotoutils.cc -index 085c1ffbe..a9070d5e4 100644 ---- a/onnxruntime/core/framework/tensorprotoutils.cc -+++ b/onnxruntime/core/framework/tensorprotoutils.cc -@@ -256,7 +256,7 @@ Status UnpackTensor(const ONNX_NAMESPACE::TensorProto& tensor, const void* raw_d - ") does not match the data size(", tensor.field_size(), ") in proto"); \ - auto& data = tensor.field_name(); \ - for (auto data_iter = data.cbegin(); data_iter != data.cend(); ++data_iter) \ -- *p_data++ = *reinterpret_cast<const T*>(data_iter); \ -+ *p_data++ = *data_iter; \ - return Status::OK(); \ - } - |