ONNX Runtime架构深度解析:Session、执行提供者与性能优化实战
2026/10/8 21:39:06
#ifdef __GNUC__ #define PUTCHAR_PROTOTYPE int __io_putchar(int ch) //对于CLion使用的arm-none-eabi-gcc #else #define PUTCHAR_PROTOTYPE int fputc(int ch, FILE *f) //对于MDK-ARM用的ARMCC编译器 #endif PUTCHAR_PROTOTYPE { HAL_UART_Transmit(&huart1, (const uint8_t *)&ch, 1, 1000); return ch; }