---
title: 完整样例参考
description: "| Sample名称 | 代码地址 | 场景说明 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/dataflowdevg/dfdevp_23_0013.html
sourcePath: /source/zh/canncommercial/900/others/dataflowdevg/dfdevp_23_0013.html
indexId: 8dbcfed6b55284abc4436249c34dc4a52bda2f320ab5e8326f9f68e2d5057d9369
---
# 完整样例参考

| Sample名称 | 代码地址 | 场景说明 |
| --- | --- | --- |
| sample\_multiple\_model | 获取样例(https://gitcode.com/cann/ge/tree/master/examples/dflow/python) | 多模型串接下沉执行。使用FuncProcessPoint和GraphProcessPoint构造DataFlow图，通过将GraphProcessPoint执行的onnx、pb模型下沉到device，减少host和device之间控制面、数据面交互，提高执行性能。 |
| sample\_pytorch | 获取样例(https://gitcode.com/cann/ge/tree/master/examples/dflow/python) | sample\_pytorch：DataFlow结合PyTorch做模型在线推理。将原来预处理、模型推理、后处理的串行执行流程改造成能够异步流水执行的FlowGraph，从而提升推理整体的吞吐量。 |
| sample\_npu\_model | 获取样例(https://gitcode.com/cann/ge/tree/master/examples/dflow/python) | 针对sample\_pytorch的优化，增加了对PyTorch模型节点的数据下沉或者模型下沉。 |
