Overview of the Paddle High reusability operator library (PHI)
developThe Paddle High reusability operator library (PHI), also known as the 'functional operator library', is a refactored operator architecture designed to replace the original Paddle Fluid Framework operator library.
PHI provides a functional paradigm that allows developers to implement new operator kernels by combining existing kernel functions and the Kernel Primitives API (KPS). This design supports:
- High Reusability: Implementing new operators by calling functional interfaces instead of constructing complex
ExecutionContextobjects. - Hardware Plug-ins: Support for new hardware or acceleration libraries via plug-in access.
- Unified Training and Inference: A single library that serves training, server-side inference, and mobile-side (Paddle-Lite) inference, reducing maintenance costs and bugs caused by implementation mismatches.
- Improved Performance: A function-based scheduling architecture that reduces the overhead of the dynamic graph and enables fine-grained execution scheduling for static graphs.