提交 a7bb9833 编写于 作者: Q qiaolongfei

optimize indent

上级 f3cbd8d4
...@@ -36,11 +36,11 @@ const std::string kUseCUDNN = "use_cudnn"; ...@@ -36,11 +36,11 @@ const std::string kUseCUDNN = "use_cudnn";
const std::string kUseMKLDNN = "use_mkldnn"; const std::string kUseMKLDNN = "use_mkldnn";
KernelType GetExpectedKernelType() { KernelType GetExpectedKernelType() {
if (Attr<bool>(kForceCPU)) { if (Attr<bool>(kForceCPU)) {
return KernelType(CPUPlace, ...) return KernelType(CPUPlace, ...)
} else { } else {
... ...
} }
} }
``` ```
...@@ -50,8 +50,8 @@ In Python code ...@@ -50,8 +50,8 @@ In Python code
FORCE_CPU = core.kForceCPU() FORCE_CPU = core.kForceCPU()
def xx_layer(..., force_cpu=false): def xx_layer(..., force_cpu=false):
layer_helper = LayerHelper(...) layer_helper = LayerHelper(...)
layer_helper.append_op( layer_helper.append_op(
type="xx", type="xx",
attr={FORCE_CPU: force_cpu}) attr={FORCE_CPU: force_cpu})
``` ```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册