нравится: < /p>
W:/projects/AI/ONNX/onnxruntime-win-x64-1.20.1/include/onnxruntime_cxx_inline.h: In lambda function:
W:/projects/AI/ONNX/onnxruntime-win-x64-1.20.1/include/onnxruntime_cxx_inline.h
1968 | ThrowOnError(GetApi().ReleaseAvailableProviders(providers, len));
| ^~~~~~~~~~~~~~~~~~~~~~~~~
W:/projects/AI/ONNX/onnxruntime-win-x64-1.20.1/include/onnxruntime_cxx_inline.h: In function 'std::vector Ort::GetAvailableProviders()':
W:/projects/AI/ONNX/onnxruntime-win-x64-1.20.1/include/onnxruntime_cxx_inline.h
1971 | ThrowOnError(GetApi().GetAvailableProviders(&providers, &len));
| ^~~~~~~~~~~~~~~~~~~~~
W:/projects/AI/ONNX/onnxruntime-win-x64-1.20.1/include/onnxruntime_cxx_inline.h: In constructor 'Ort::ShapeInferContext::ShapeInferContext(const OrtApi*, OrtShapeInferContext*)':
W:/projects/AI/ONNX/onnxruntime-win-x64-1.20.1/include/onnxruntime_cxx_inline.h
2002 | Ort::ThrowOnError(ort_api_->ShapeInferContext_GetInputCount(ctx_, &input_count));
< /code>
Если я опускаю "-std = c ++ 20" (или любой флаг STD), я могу скомпилировать просто нормально, и код работает, как и ожидалось. Это не имеет большого значения, но мне любопытно, почему это?>
Подробнее здесь: https://stackoverflow.com/questions/794 ... -lot-of-er
Мобильная версия