Fix pybind and const type mismatch

cblas_new
Yi Wang 8 years ago
parent ddb29b6ca6
commit e4aea7fde4

@ -154,8 +154,8 @@ All parameter, weight, gradient are variables in Paddle.
m.def_submodule( m.def_submodule(
"var_names", "var_names",
"The module will return special predefined variable name in Paddle") "The module will return special predefined variable name in Paddle")
.def("empty", kEmptyVarName) .def("empty", []() { return kEmptyVarName; })
.def("temp", kTempVarName); .def("temp", []() { return kTempVarName; });
// clang-format off // clang-format off
py::class_<paddle::platform::DeviceContext>(m, "DeviceContext") py::class_<paddle::platform::DeviceContext>(m, "DeviceContext")
.def_static("create", .def_static("create",

Loading…
Cancel
Save