【Hackathon 9th No.73】add unit tests for graph_opt_backend by ooooo-create · Pull Request #3609 · PaddlePaddle/FastDeploy (original) (raw)
Pull Request Overview
This PR adds comprehensive unit tests for the graph optimization backend, testing various graph optimization modes and CUDA graph configurations to ensure consistent model outputs against a NumPy baseline.
- Introduces a new test file with
TestGrpahOptBackendclass to validate graph optimization functionality - Tests dynamic, static, and CINN graph optimization modes both with and without CUDA graph enabled
- Implements a
TinyModelclass withsupport_graph_optimizationdecorator for testing purposes
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.