From cb2ef7d97de9b011f2dc9de060e0a641794ccbe1 Mon Sep 17 00:00:00 2001 From: Yu Yang <yuyang18@baidu.com> Date: Mon, 9 Oct 2017 20:46:44 -0700 Subject: [PATCH] Add comment --- paddle/framework/op_desc.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/paddle/framework/op_desc.cc b/paddle/framework/op_desc.cc index 6ce453cc99..c4dcb2210d 100644 --- a/paddle/framework/op_desc.cc +++ b/paddle/framework/op_desc.cc @@ -200,6 +200,7 @@ static InferShapeFuncMap &InferShapeFuncs() { // all registered kernels for (auto &pair : OperatorWithKernel::AllOpKernels()) { auto &info = info_map.Get(pair.first); + // use empty type here to avoid runtime checks. auto op = static_cast<OperatorWithKernel *>(info.Creator()("", {}, {}, {})); g_map->insert( -- GitLab