Class CpuPassStrategy

Inheritance Relationships

Base Type

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.

CpuPassStrategy(const CpuPassStrategy &other)

Construct by copying another CpuPassStrategy object.

Parameters

~CpuPassStrategy() = default

Default destructor.

void EnableCUDNN() override

Enable the use of cuDNN kernel.

void EnableMKLDNN() override

Enable the use of MKLDNN.

void EnableMkldnnQuantizer() override

Enable MKLDNN quantize optimization.