C2280 “Ort::Value::Value(const Ort::Value &)” #18041
Unanswered
yimingchao432
asked this question in
Other Q&A
Replies: 1 comment
-
I'm not quite sure what your question is? My guess is that you're trying to copy input_tensor and your last line should be: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
std::vector<std::vector> inputs;
std::vectorOrt::Value ort_inputs;
//auto memory_info = Ort::MemoryInfo::CreateCpu(OrtArenaAllocator, OrtMemTypeDefault);
auto memory_info = Ort::MemoryInfo::CreateCpu(OrtDeviceAllocator, OrtMemTypeCPU);
for (size_t i = 0; i < num_input_nodes; i++)
{
Ort::Value input_tensor = Ort::Value::CreateTensor(memory_info, inputs[i].data(),
input_node_dims_sum[i], input_node_dims_vector[i].data(), input_node_dims_vector[i].size());
//assert(input_tensor.IsTensor());
ort_inputs.emplace_back(input_tensor);
}
Beta Was this translation helpful? Give feedback.
All reactions