microsoft / microsoft/onnxruntime
[Documentation] ONNXRuntime 1.13.1 windows cusomtized app build error
- Dominant language
- C++
- Stars
- 21.9k
- Forks
- 4.2k
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 184
Description
### Describe the documentation issue
```
error C2280: “Ort::Value::Value(const Ort::Value &)”: 尝试引用已删除的函数
```
MSVC 2019 got above bug when calling onnxrunitime API to build a c++ demo.
The code where related to Ort::Value:
```
std::vector ort_inputs;
ort_inputs.resize(inputNames.size());
for (int i = 0; i < inputNames.size(); ++i) {
// override inputShapes batch dim with inputs
inputShapes[i][0] = inputs[i].shape[0];
auto input_tensor = Ort::Value::CreateTensor(
memoryInfo, static_cast(inputs[i].data), inputs[i].get_size(),
inputShapes[i].data(), inputShapes[i].size());
assert(input_tensor.IsTensor());
ort_inputs.emplace_back(input_tensor);
}
```
### Page / URL
_No response_
Contributor guide
Research direction
Start by reproducing the MSVC 2019 Windows C++ demo error in the shown Ort::Value and vector code with ONNX Runtime 1.13.1. Since no documentation page or URL is identified, locate the relevant API guidance, determine the cause of the deleted-copy-constructor error, and document the verified resolution or workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- documentation, machine-learning
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100