onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Invalid Feed Input Name:input1
时间: 2023-10-26 20:14:52 浏览: 39
这个错误提示表明输入数据的名称不正确。在使用 ONNX Runtime 运行模型时,需要指定输入数据的名称和对应的数据。请检查输入数据的名称是否正确,并确保与模型中定义的输入数据名称相同。你可以使用下面的代码来检查模型的输入数据名称:
```
import onnxruntime as ort
model_path = "path/to/your/model.onnx"
sess = ort.InferenceSession(model_path)
input_name = sess.get_inputs()[0].name
print("Model input name:", input_name)
```
如果你在指定输入数据时使用了错误的名称,可以使用上面的代码来获取正确的输入数据名称。
相关问题
user\API\LCD1.c(112): error: #171: invalid type conversion
引用\[1\]:#181-D…\HARDWARE\src\uart.c(399): warning: #181-D: argument is incompatible with corresponding format string conversion printf(“process msg:%s %d\r\n”,&Process_ptr,&Process_ptr);修改:参数与相应的格式字符串转换不兼容 。 引用\[2\]:#513…\HARDWARE\src\uart.c(396): error: #513: a value of type “u8 *” cannot be assigned to an entity of type “uint8_t” temp = USART2_RX_BUF;修改: 。 引用\[3\]:#1441-D…\HEADWARE\USBProcess\USBProcess.c(298): warning: #1441-D: nonstandard cast on lvalue (u8 *)send_buf\[193\] = acount_len\[0\];修改:非标强制转换 。
问题:user\API\LCD1.c(112): error: #171: invalid type conversion
回答: 根据您提供的引用内容,错误代码#171表示无效的类型转换。具体来说,这个错误可能是由于在user\API\LCD1.c文件的第112行进行了一个无效的类型转换导致的。要解决这个问题,您需要检查第112行的代码,并确保进行的类型转换是有效的。如果需要,您可能需要更改代码以使用正确的类型转换。
#### 引用[.reference_title]
- *1* *2* *3* [stm32MDK错误码(不定时更新)](https://blog.csdn.net/I_O_fly/article/details/112184004)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
在做flutter plugin时做安卓app报这个错是什么原因ioctl c0044901 failed with code -1: Invalid argument
这个错误通常是因为在调用系统API时传递了无效参数导致的。您需要检查您的代码,看看是否有地方传递了不正确的参数。
另外,如果您使用了第三方库或插件,请确保它们是最新版本,并且与您的Flutter版本兼容。
最后,如果您仍然无法解决问题,请尝试在Android Studio中调试您的应用程序,查看哪些代码导致了此错误。