Мне нужно связать тензорный ввод и вывод с помощью привязки ввода-вывода для модели времени выполнения ONNX. но я не получил вывода. выходной тензор возвращает NULL-указатель. Я приложу код ниже.
Мне нужно связать тензорный ввод и вывод с помощью привязки ввода-вывода для модели времени выполнения ONNX. но я не получил вывода. выходной тензор возвращает NULL-указатель. Я приложу код ниже. [code]std::vector input_tensors; std::vector output_tensors; std::vector input_node_names_c_str; std::vector output_node_names_c_str; int64_t input_height = input_node_dims[0].at(2); int64_t input_width = input_node_dims[0].at(3);
// // Pass gpu_graph_id to RunOptions through RunConfigs Ort::RunOptions run_option; // gpu_graph_id is optional if the session uses only one cuda graph run_option.AddConfigEntry("gpu_graph_id", "1");
// Check if input and output node names are empty for (const auto& inputNodeName : input_node_names) { if (std::string(inputNodeName).empty()) { std::cerr