Probleme beim Erstellen von onnxruntime unter UbuntuC++

Programme in C++. Entwicklerforum
Guest
 Probleme beim Erstellen von onnxruntime unter Ubuntu

Post by Guest »

Ich möchte die Datei onnxruntime_cxx_api.h verwenden und gehe davon aus, dass ich dieses Projekt erstellen sollte, also folge ich diesem Tutorial https://onnxruntime.ai/docs/build/inferencing.html
Ich habe gerade ./build.sh --config RelWithDebInfo --build_shared_lib --parallel --compile_no_warning_as_error ausgeführt --skip_submodule_sync
aber es gab einige seltsame Probleme,

Code: Select all

/usr/include/onnx/onnx-operators-ml.pb.h:2303:18: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::Set(const string*, std::string, google::protobuf::Arena*)’
2303 |   doc_string_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
|   ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2304 |       reinterpret_cast(value), size), GetArena());

Code: Select all

/home/R/Downloads/onnxruntime/include/onnxruntime/core/framework/to_tensor_proto_element_type.h: In function ‘constexpr onnx::TensorProto_DataType onnxruntime::utils::ToTensorProtoElementType() [with T = onnxruntime::Float8E4M3FN]’:
/home/R/Downloads/onnxruntime/include/onnxruntime/core/framework/to_tensor_proto_element_type.h:85:26: error: ‘TensorProto_DataType_FLOAT8E4M3FN’ is not a member of ‘onnx’; did you mean ‘TensorProto_DataType_FLOAT16’?
85 |   return ONNX_NAMESPACE::TensorProto_DataType_FLOAT8E4M3FN;
|                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|                          TensorProto_DataType_FLOAT16
Es liegt außerhalb meiner Möglichkeiten, diese Probleme jetzt zu beheben

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post