# 准备输入/输出缓冲区

Source: [https://docs.qualcomm.com/doc/80-70014-54Y/topic/prepare-input-output-buffers.html](https://docs.qualcomm.com/doc/80-70014-54Y/topic/prepare-input-output-buffers.html)

编译独立的 TensorFlow Lite 应用程序时，执行 TensorFlow Lite 模型的 pipeline 需要准备输入数据，例如摄像头帧。

例如，在以下情况下，预处理操作对于确保推理正确完成非常重要：

- 将输入图像调整为模型期望的分辨率
- 归一化
- 均值减法

**Parent Topic:** [运行推理](https://docs.qualcomm.com/doc/80-70014-54Y/topic/run-inference.html)

Last Published: Aug 06, 2024

[Previous Topic
用选定的 delegate 准备一个模型](https://docs.qualcomm.com/bundle/publicresource/80-70014-54Y/topics/prepare-a-model-with-a-chosen-delegate.md) [Next Topic
运行模型](https://docs.qualcomm.com/bundle/publicresource/80-70014-54Y/topics/execute-a-model.md)