Class CpuPassStrategy¶
Defined in File paddle_pass_builder.h
Inheritance Relationships¶
Base Type¶
public paddle::PassStrategy
(Class PassStrategy)
Class Documentation¶
- class paddle::CpuPassStrategy : public paddle::PassStrategy¶
The CPU passes controller, it is used in AnalysisPredictor with CPU mode.
Public Functions
- CpuPassStrategy()¶
Default constructor of CpuPassStrategy.
- inline explicit CpuPassStrategy(const CpuPassStrategy &other)¶
Construct by copying another CpuPassStrategy object.
- Parameters
other – [in] The CpuPassStrategy object we want to copy.
- virtual ~CpuPassStrategy() = default¶
Default destructor.
- virtual void EnableCUDNN() override¶
Enable the use of cuDNN kernel.
- virtual void EnableMKLDNN() override¶
Enable the use of MKLDNN.
- virtual void EnableMkldnnQuantizer() override¶
Enable MKLDNN quantize optimization.
- CpuPassStrategy()¶